Christopher Bergström wrote:
Try boot.local
/etc/init.d/boot.local
Alternatively, here's a little template script so you can maybe
control this via YaST.. You need to of course fill in the stop and
restart, but I'll leave that as a challenge :)
#!/bin/sh
case "$1" in
start)
echo "Starting xsp..."
nohup /path/to/mono /path/to/xsp.exe [yourarguments] --nonstop &
;;
stop)
echo "Stopping xsp..."
;;
restart)
echo "Restarting xsp..."
;;
*)
echo "Usage: 'basename $0' {start|stop|restart}" >&2
exit 64
;;
esac
exit 0
Thanks Christopher.
boot.local seems a bit iffy as the file says:
# Here you should add things, that should happen directly after booting
# before we're going to the first run level.
I'm not sure that's quite what's needed (although I'm not sure what harm
it might do, either).
Perhaps I need to look at insserv with your script template suitably
adorned with the appropriate comments. Something I'll have to research.
... and I thought it was just a simple question. Sorry guys.
On the bright side: if I ever get this sorted, I can add it to the
documentation I'm supposed to be sorting out on Mono services.
Cheers
Peter
_______________________________________________
Mono-list maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list