Thanks Panik! Changing the source to v2006-07-10 did the trick...

Those startup scripts look a bit elaborate for my needs (and I'm not
really sure what advantage the extra complexity of a mysql backend
offers) I may check them out over time. Meanwhile, here's the simplest
Debian-based startupscript I could find. Works for me!

#!/bin/sh

# slimserver init script for Debian Linux
#
# This script expects slimserver to be installed in
# /usr/local/slimserver
#
# logfile will be written to
# /tmp/slimserver.log
#

DAEMON=/usr/local/slimserver/slimserver.pl
PIDFILE=/var/tmp/slimserver.pid
LOGFILE=/tmp/slimserver.log
USER=slimserver
SLIMSERVER_OPTS=""

test -x ${DAEMON} || exit 0

case "$1" in
start) echo -n "Starting Slimserver: "
HOME=/home/$USER
start-stop-daemon --start --quiet --exec $DAEMON \
--chuid ${USER} -- --daemon \
--prefsfile=/etc/slimserver.pref --pidfile=${PIDFILE} \
--logfile=${LOGFILE} ${SLIMSERVER_OPTS}
echo "slimserver"
;;

stop) echo -n "Stopping Slimserver: "
start-stop-daemon --stop --quiet --user ${USER} --pidfile ${PIDFILE}
--retry 5
echo "done"
;;

force-reload|restart) $0 stop
$0 start
;;

*) echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1;
;;

esac

exit 0


-- 
doofus
------------------------------------------------------------------------
doofus's Profile: http://forums.slimdevices.com/member.php?userid=3952
View this thread: http://forums.slimdevices.com/showthread.php?t=25250

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/unix

Reply via email to