Somebody put this one onto DesktopEdition.

PATH=/bin:/usr/bin:/sbin:/usr/sbin

case "${1}" in
("start")
    echo -n "Starting MoinMoin standalone server: "
    start-stop-daemon --start --quiet --background --exec "/path/to/moin.py
"
    ;;
("stop")
    echo -n "Stopping MoinMoin standalone server: "
    #TODO start-stop-daemon --stop --retry=1 --quiet --oknodo --exec "..."
    ;;
("restart" | "force-reload")
    "${0}" stop
    "${0}" start
    ;;
(*)
    echo "Usage: /etc/init.d/moin {start|stop|restart|force-reload}" >&2
    ;;
esac

MoinMoin: ScriptMarket/InitScript (last edited 2007-10-29 19:07:43 by localhost)