summaryrefslogtreecommitdiffstats
path: root/database/firebird/init.d/firebird2
diff options
context:
space:
mode:
Diffstat (limited to 'database/firebird/init.d/firebird2')
-rwxr-xr-xdatabase/firebird/init.d/firebird215
1 files changed, 5 insertions, 10 deletions
diff --git a/database/firebird/init.d/firebird2 b/database/firebird/init.d/firebird2
index a813d449e1..0dbcb40f00 100755
--- a/database/firebird/init.d/firebird2
+++ b/database/firebird/init.d/firebird2
@@ -6,11 +6,9 @@
# on system startup and shutdown to start the background
# Firebird2 database Super server daemon
-
-FB=/usr/firebird/bin/fbmgr.bin
-# as of rc2, preferred method of stoppng is to kill the pid
-RUND=/var/run/firebird
-PID=$RUND/`basename $0`.pid
+FB_DIR=/opt/firebird/bin
+FB=fbserver
+# as of rc2, preferred method of stopping is to kill the process
source /etc/init.d/smgl_functions
@@ -21,15 +19,12 @@ NEEDS="+network +remote_fs"
case $1 in
start)
echo "Starting Firebird Super Server"
- mkdir -p $RUND
- chown firebird:firebird $RUND
- su -s "/bin/sh" -m \
- -c "$FB -start -forever -pidfile $PID" -l "firebird"
+ su -s "/bin/sh" -m -c "$FB_DIR/$FB" -l "firebird" &
evaluate_retval
;;
stop)
echo "Stopping Firebird server"
- kill `cat $PID`
+ pkill $FB
evaluate_retval
;;