mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 20:43:04 +01:00
38 lines
790 B
Plaintext
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
|
|
}
|