#!/sbin/runscript # Nexuiz Dedicated Server Runscript by Felix Schäfer NEXUIZDIR="/usr/share/games/quake1/nexuiz/" OPTIONS="+exec server.cfg" ### Do not edit below here or the world will explode ### depend() { need net } start() { ebegin "Starting Nexuiz Dedicated Server" start-stop-daemon --chdir ${NEXUIZDIR} --chuid games:games --make-pidfile --background --quiet --pidfile /var/run/nexuiz-dedicated.pid --exec /usr/games/bin/nexuiz-dedicated --start -- ${OPTIONS} eend $? "Failed to start Nexuiz Dedicated Server" } stop() { ebegin "Stopping Nexuiz Dedicated Server" start-stop-daemon --stop --quiet --pidfile /var/run/nexuiz-dedicated.pid -- eend $? "Failed to stop Nexuiz Dedicated Server" sleep 1 }