peter wrote:
Jonathan Pryor wrote:

Edit /etc/rc.local, and add the following line:

    nohup /path/to/mono /path/to/xsp.exe [yourarguments] --nonstop &

Then restart your computer (so that /etc/rc.local is executed).

This is for Fedora Core anyway.  I assume SuSE and other Linux distros
have a similarly easy mechanism to add boot-time commands.

- Jon
 

Thanks Jon - but it doesn't appear to be rc.local in the case of SuSE.  Doing:

% locate rc.local

comes back with nothing.
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


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to