mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-27 05:23:02 +01:00
20 lines
505 B
Plaintext
20 lines
505 B
Plaintext
|
#!/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 ; $0 start ;;
|
||
|
*) echo "usage $0 start|stop|restart" ;;
|
||
|
esac
|