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 if [ ! -f /var/lock/subsys/firebird ]; then
35 daemon --user firebird $DAEMON -start -forever
37 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/firebird
39 msg_already_running firebird
44 if [ -f /var/lock/subsys/firebird ]; then
46 daemon --user firebird $DAEMON -shut
47 rm -f /var/lock/subsys/firebird >/dev/null 2>&1
49 msg_not_running firebird
54 if [ -f /var/lock/subsys/firebird ]; then
58 msg_not_running firebird
64 # See how we were called.
87 msg_usage "$0 {start|stop|restart|try-restart|force-reload|status}"