59cbc3c7bf
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1450 6952d904-891a-0410-993b-d76249ca496b
33 lines
692 B
D
33 lines
692 B
D
#!/sbin/runscript
|
|
# Copyright 1999-2004 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-db/firebird/files/firebird.init.d,v 1.4 2008/04/10 23:00:00 wltjr Exp $
|
|
|
|
pidfile=/var/run/firebird/firebird.pid
|
|
FB_OPTS="-pidfile $pidfile -start -forever"
|
|
|
|
export FIREBIRD LD_LIBRARY_PATH
|
|
|
|
depend() {
|
|
need net
|
|
}
|
|
|
|
start(){
|
|
ebegin "Starting Firebird server"
|
|
start-stop-daemon --oknodo --start --pidfile $pidfile --chuid $FBRunUser --startas $MANAGER -- $FB_OPTS
|
|
eend $?
|
|
}
|
|
|
|
stop(){
|
|
ebegin "Stopping Firebird server"
|
|
start-stop-daemon --stop --pidfile $pidfile --oknodo
|
|
eend $?
|
|
}
|
|
|
|
restart(){
|
|
svc_stop
|
|
sleep 1
|
|
svc_start
|
|
}
|
|
|