From e246873f43db77850c172263be72bc5153b23adb Mon Sep 17 00:00:00 2001 From: "Andreas K. Hüttel" Date: Sun, 21 May 2017 13:56:02 +0200 Subject: dev-db/firebird: Simplify and add work from linuxunderground overlay Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- dev-db/firebird/files/firebird.init.d.3.0 | 22 ++++++++++++++++++++++ dev-db/firebird/files/firebird.xinetd.3.0 | 11 +++++++++++ 2 files changed, 33 insertions(+) create mode 100644 dev-db/firebird/files/firebird.init.d.3.0 create mode 100644 dev-db/firebird/files/firebird.xinetd.3.0 (limited to 'dev-db/firebird/files') 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 +} -- cgit v1.2.3-65-gdbad