You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-db/firebird/files/firebird.init.d.2.5

31 lines
517 B

#!/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
}