diff options
author | 2008-08-24 06:36:05 +0000 | |
---|---|---|
committer | 2008-08-24 06:36:05 +0000 | |
commit | 4dd4e11484218554f285af71f29c17409e73a72b (patch) | |
tree | 2c2095585c21bc20b78f1a6fd5902712b493c459 /games-puzzle/londonlaw/files | |
parent | Version bump (#235559) (diff) | |
download | historical-4dd4e11484218554f285af71f29c17409e73a72b.tar.gz historical-4dd4e11484218554f285af71f29c17409e73a72b.tar.bz2 historical-4dd4e11484218554f285af71f29c17409e73a72b.zip |
dedicated support and sed patch from mattenklicker@gmx.net via bug #235326
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'games-puzzle/londonlaw/files')
-rw-r--r-- | games-puzzle/londonlaw/files/londonlaw.confd | 2 | ||||
-rw-r--r-- | games-puzzle/londonlaw/files/londonlaw.rc | 21 |
2 files changed, 23 insertions, 0 deletions
diff --git a/games-puzzle/londonlaw/files/londonlaw.confd b/games-puzzle/londonlaw/files/londonlaw.confd new file mode 100644 index 000000000000..083798b3252b --- /dev/null +++ b/games-puzzle/londonlaw/files/londonlaw.confd @@ -0,0 +1,2 @@ +#run londonlaw on port 7921 (default) +LONDONLAW_PORT="7921" diff --git a/games-puzzle/londonlaw/files/londonlaw.rc b/games-puzzle/londonlaw/files/londonlaw.rc new file mode 100644 index 000000000000..9626a3d61a7d --- /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 /var/log/londonlaw.log \ + --stderr /var/log/londonlaw.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 $? +} |