8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-24 20:43:04 +01:00
firebird-mirror/builds/install/arch-specific/linux/misc/firebird.init.d.gentoo.in
2007-03-22 13:25:59 +00:00

38 lines
790 B
Plaintext

#!/sbin/runscript
#Gentoo Linux RC script
# description: Start/Stop firebird database server
#
# This file belongs in /etc/init.d where it will be run
# on system startup and shutdown to start the background
# Firebird/interbase database server daemon
# Source function library.
. /etc/init.d/functions.sh
FIREBIRD=@prefix@
FBRunUser=firebird
pidfile=/var/run/firebird/`basename $0`.pid
FB_OPTS="-pidfile $pidfile -start -forever"
export FIREBIRD
MANAGER=$FIREBIRD/bin/fbmgr.bin
start(){
ebegin "Starting firebird server"
start-stop-daemon --oknodo --start --pidfile $pidfile --chuid $FBRunUser --startas $MANAGER -- $FB_OPTS
eend $?
}
stop(){
ebegin "Stopping firebird"
start-stop-daemon --stop --pidfile $pidfile --oknodo
eend $?
}
restart(){
svc_stop
sleep 1
svc_start
}