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 | |
parent | cmake-utils.eclass: Drop _cmake_execute_optionally after WANT_CMAKE (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')
-rw-r--r-- | dev-db/firebird/files/firebird.init.d.3.0 | 22 | ||||
-rw-r--r-- | dev-db/firebird/files/firebird.xinetd.3.0 | 11 |
2 files changed, 33 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 +} diff --git a/dev-db/firebird/files/firebird.xinetd.3.0 b/dev-db/firebird/files/firebird.xinetd.3.0 new file mode 100644 index 000000000000..4e094bdf0627 --- /dev/null +++ b/dev-db/firebird/files/firebird.xinetd.3.0 @@ -0,0 +1,11 @@ +service gds_db +{ + flags = REUSE + socket_type = stream + wait = no + user = firebird + log_on_success += USERID + log_on_failure += USERID + server = /usr/bin/firebird + disable = yes +} |