blob: 7a719587c7d65ba9702d3001b41062e82755ad83 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
depend() {
need net
}
start() {
ebegin "Starting OpenTTD dedicated server"
start-stop-daemon --start -q --exec /usr/games/bin/openttd -- -D -f > /dev/null
eend $?
}
stop() {
ebegin "Stopping OpenTTD dedicated server"
start-stop-daemon --stop -q -n openttd
eend $?
}
|