5 # chkconfig: 2345 80 30
6 # description: firebird is a database server
8 # Source function library.
9 . /etc/rc.d/init.d/functions
11 # Source networking configuration.
12 . /etc/sysconfig/network
15 # Source oident configureation.
16 if [ -f /etc/sysconfig/firebird ]; then
17 . /etc/sysconfig/firebird
20 GUARDIAN=/usr/lib/interbase/bin/fbguard
21 PIDFILE=/var/run/firebird/firebird.pid
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down firebird
34 if [ ! -f /var/lock/subsys/firebird ]; then
36 daemon --user firebird $GUARDIAN -pidfile $PIDFILE -daemon -forever
38 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/firebird
40 msg_already_running firebird
45 if [ -f /var/lock/subsys/firebird ]; then
47 killproc --pidfile $PIDFILE $GUARDIAN
48 rm -f /var/lock/subsys/firebird >/dev/null 2>&1
50 msg_not_running firebird
55 if [ -f /var/lock/subsys/firebird ]; then
59 msg_not_running firebird
65 # See how we were called.
88 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"