blob: 9626a3d61a7df26285d0b3cfa6d4d91d084cea2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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 $?
}
|