summaryrefslogtreecommitdiff
blob: a14cf6d2a9e0247dacd1a847e7d778dd741b4236 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Id$

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 $?
}