8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-25 00:03:03 +01:00
firebird-mirror/builds/install/arch-specific/linux/misc/firebird.init.d.slackware.in
2007-03-09 13:32:17 +00:00

20 lines
514 B
Bash

#!/bin/sh
#
# /etc/rc.d/rc.firebirdss
#
# Start/stop/restart the firebird super server.
#
export FIREBIRD=@prefix@
FBRunUser=firebird
pidfile=/var/run/firebird/`basename $0`.pid
case "$1" in
'start') echo -n "Starting Firebird server: "
echo $FIREBIRD/bin/fbmgr -pidfile $pidfile -start -forever | su $FBRunUser ;;
'stop') echo -n "Stopping Firebird server: "
if [ -f $pidfile ]; then kill `cat $pidfile`; fi ;;
'restart') $0 stop ; sleep 1; $0 start ;;
*) echo "usage $0 start|stop|restart" ;;
esac