diff options
| author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-05-21 13:56:02 +0200 |
|---|---|---|
| committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2017-05-21 13:57:58 +0200 |
| commit | e246873f43db77850c172263be72bc5153b23adb (patch) | |
| tree | 26c6861efc2147a669fb5da13daa0b2b3c3a82e3 /dev-db/firebird/files/firebird.init.d.3.0 | |
| parent | 22613709600435ba9d5ea71531d3f5174a981101 (diff) | |
| download | gentoo-e246873f43db77850c172263be72bc5153b23adb.tar.gz gentoo-e246873f43db77850c172263be72bc5153b23adb.tar.bz2 gentoo-e246873f43db77850c172263be72bc5153b23adb.zip | |
dev-db/firebird: Simplify and add work from linuxunderground overlay
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-db/firebird/files/firebird.init.d.3.0')
| -rw-r--r-- | dev-db/firebird/files/firebird.init.d.3.0 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-db/firebird/files/firebird.init.d.3.0 b/dev-db/firebird/files/firebird.init.d.3.0 new file mode 100644 index 000000000000..9fd4f8504769 --- /dev/null +++ b/dev-db/firebird/files/firebird.init.d.3.0 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License, v2 or later + +name=${RC_SVCNAME} + +fbhomedir="/var/run/firebird" +fblogdir="/var/log/firebird" +pidfile="${fbhomedir}/firebird.pid" +command="/usr/sbin/fbguard" +command_args="-forever -daemon -pidfile $pidfile" + +start_stop_daemon_args="-p ${pidfile} -u ${FBUSER:-firebird}:${FBGROUP:-firebird}" + +depend() { + need net +} + +start_pre() { + checkpath -q -d -m 0770 -o ${FBUSER:-firebird}:${FBGROUP:-firebird} ${fbhomedir} || return 1 + checkpath -q -d -m 0770 -o ${FBUSER:-firebird}:${FBGROUP:-firebird} ${fblogdir} || return 1 +} |
