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 DAEMON=/usr/lib/interbase/bin/fbmgr.bin
22 # Check that networking is up.
23 if is_yes "${NETWORKING}"; then
24 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
25 msg_network_down firebird
33 # See how we were called.
37 if [ ! -f /var/lock/subsys/firebird ]; then
39 daemon --user firebird $DAEMON -start -forever
41 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/firebird
43 msg_already_running firebird
48 if [ -f /var/lock/subsys/firebird ]; then
50 daemon --user firebird $DAEMON -shut
51 rm -f /var/lock/subsys/firebird >/dev/null 2>&1
53 msg_not_running firebird
66 msg_usage "$0 {start|stop|restart|force-reload|status}"