diff options
Diffstat (limited to 'games-puzzle/londonlaw/files/londonlaw.rc')
-rw-r--r-- | games-puzzle/londonlaw/files/londonlaw.rc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/games-puzzle/londonlaw/files/londonlaw.rc b/games-puzzle/londonlaw/files/londonlaw.rc new file mode 100644 index 0000000..fbc185c --- /dev/null +++ b/games-puzzle/londonlaw/files/londonlaw.rc @@ -0,0 +1,21 @@ +#!/sbin/runscript + +depend() { + need net +} + +start() { + ebegin "Starting londonlaw server" + start-stop-daemon --start --pidfile /var/run/london-server.pid \ + --user GAMES_USER_DED --background --stdout GAMES_LOGDIR/PN.log \ + --stderr GAMES_LOGDIR/PN.log --make-pidfile \ + --exec GAMES_BINDIR/london-server -- -p $LONDONLAW_PORT + eend $? +} + +stop() { + ebegin "Stopping londonlaw server" + start-stop-daemon --stop --pidfile /var/run/london-server.pid \ + --exec GAMES_BINDIR/london-server + eend $? +} |