Cool. Thanks a lot!
What does "set -e" do?
Thanks, Jacob
Andreas Neiser wrote:
Jacob Friis Larsen wrote:
Anyone have a start and stop script for 3dmd I can have a look at?
This one works for me, maybe you need to adapt it:
--snip-- #! /bin/sh # # 3dmd Start the 3dmd supplied by www.3ware.com # Based on skeleton. # # Author: Andreas Neiser #
set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/3dmd NAME=3dmd DESC="3ware Escalade daemon"
PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME
# Gracefully exit if the package has been removed. test -x $DAEMON || exit 0
case "$1" in
start)
echo -n "Starting $DESC: $NAME"
start-stop-daemon --start --quiet --oknodo \
--background --exec $DAEMON
echo "."
;;
stop)
echo -n "Stopping $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo \
--exec $DAEMON
echo "."
;;
restart|force-reload)
#
# If the "reload" option is implemented, move the
# "force-reload"
# option to the "reload" entry above. If not,
# "force-reload" is
# just the same as "restart".
#
echo -n "Restarting $DESC: $NAME"
start-stop-daemon --stop --quiet --oknodo \
--exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --background --oknodo \
--exec $DAEMON
echo "."
;;
*)
# echo "Usage: $SCRIPTNAME {start|stop|restart|reload|force-reload}" >&2
echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
exit 1
;;
esac
exit 0 -- snip --
HTH! Andreas
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]