Skip to content
Snippets Groups Projects
Commit f1dc5a03 authored by wierenga's avatar wierenga
Browse files

BugID: 781

Fix the startup scripts.
parent 26173bab
No related branches found
No related tags found
No related merge requests found
......@@ -48,10 +48,26 @@ start() {
# Start BeamServer
echo -n $"Starting $prog: "
daemon $PREFIX/bin/$prog $OPTIONS
# create logging output directory and push it
# because BeamServer dumps logfiles in the current
# directory
mkdir -p $PREFIX/var/log
pushd $PREFIX/var/log > /dev/null
#
# start in the background
#
# we can use the relative path because we know we are in
# $PREFIX/var/log (with pushd on previous line)
#
daemon ../../bin/$prog $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
echo
# return to original directory
popd > /dev/null
return $RETVAL
}
......
......@@ -46,10 +46,26 @@ start() {
# Start CalServer
echo -n $"Starting $prog: "
daemon $PREFIX/bin/$prog $OPTIONS
# create logging output directory and push it
# because BeamServer dumps logfiles in the current
# directory
mkdir -p $PREFIX/var/log
pushd $PREFIX/var/log > /dev/null
#
# start in the background
#
# we can use the relative path because we know we are in
# $PREFIX/var/log (with pushd on previous line)
#
daemon ../../bin/$prog $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
echo
# return to original directory
popd > /dev/null
return $RETVAL
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment