mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-24 00:43:03 +01:00
Fixed RC1 regression - SS does not start on Mandriva
This commit is contained in:
parent
9c2703c9e3
commit
a8c5c70dc6
@ -25,18 +25,18 @@ FBRunUser=firebird
|
|||||||
pidfile=/var/run/firebird/$INSTANCE.pid
|
pidfile=/var/run/firebird/$INSTANCE.pid
|
||||||
FULLNAME="Firebird server [$INSTANCE]"
|
FULLNAME="Firebird server [$INSTANCE]"
|
||||||
LD_LIBRARY_PATH=$FIREBIRD/lib
|
LD_LIBRARY_PATH=$FIREBIRD/lib
|
||||||
|
MANAGER=$FIREBIRD/bin/fbmgr.bin
|
||||||
|
|
||||||
export FIREBIRD LD_LIBRARY_PATH
|
export FIREBIRD LD_LIBRARY_PATH
|
||||||
|
|
||||||
# Check the file is there and is executable.
|
# Check the file is there and is executable.
|
||||||
[ -x $FIREBIRD/bin/fbmgr.bin ] || exit 1
|
[ -x $MANAGER ] || exit 1
|
||||||
|
|
||||||
# See how we were called.
|
# See how we were called.
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
echo -n "Starting $FULLNAME "
|
echo -n "Starting $FULLNAME "
|
||||||
|
echo $MANAGER -pidfile $pidfile -start -forever | su $FBRunUser
|
||||||
runuser -s /bin/bash $FBRunUser -c "$FIREBIRD/bin/fbmgr.bin -pidfile $pidfile -start -forever"
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
[ $RETVAL -eq 0 ] && success || failure
|
[ $RETVAL -eq 0 ] && success || failure
|
||||||
echo
|
echo
|
||||||
|
Loading…
Reference in New Issue
Block a user