diff options
Diffstat (limited to 'dev-db/firebird/files/firebird.init.d.2.5')
-rw-r--r-- | dev-db/firebird/files/firebird.init.d.2.5 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-db/firebird/files/firebird.init.d.2.5 b/dev-db/firebird/files/firebird.init.d.2.5 new file mode 100644 index 000000000000..9c9bfb92d601 --- /dev/null +++ b/dev-db/firebird/files/firebird.init.d.2.5 @@ -0,0 +1,30 @@ +#!/sbin/openrc-run +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need net +} + +start_pre() { + checkpath -d -o $FBUSER "$(dirname $PIDFILE)" +} + +start(){ + ebegin "Starting Firebird server" + start-stop-daemon --start --pidfile $PIDFILE --user $FBUSER --group $FBGROUP --exec $FBGUARD -- $FB_OPTS + eend $? +} + +stop(){ + ebegin "Stopping Firebird server" + start-stop-daemon --stop --name fbguard + eend $? +} + +restart(){ + svc_stop + sleep 1 + svc_start +} + |