[luau] server question

Vince Hoang luau at ml.altern8.net
Fri Mar 21 12:40:01 PST 2003


On Fri, Mar 21, 2003 at 02:34:44PM -0800, Robert Green wrote:
> I didn't have the original question, but I do something similar
> using rc.local to start a game server on bootup. Is there a
> pointer or reference or example on how to do a start/stop
> services script like this?

Here is a template. If you want something more detailed, you can
read through the startup scripts on your favorite distribution.

    #! /bin/sh
    
    # $Id$
    
    case "$1" in
        start)
            # start
            ;;
    
        stop)
            # stop
            ;;
    
        *)
            # usage
            echo "Usage: `basename $0` { start | stop }"
            echo ""
            ;;
    esac

-Vince



More information about the LUAU mailing list