aboutsummaryrefslogtreecommitdiff
path: root/games/openttd/files/openttd.in
blob: cc15887baaad229057ee12a1feac95919779deeb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
#
# PROVIDE: openttd
# REQUIRE: LOGIN
# KEYWORD: shutdown
#
# Add the following lines to /etc/rc.conf to enable openttd server:
#
# openttd_enable="YES" (bool):	Set to "NO" by default
#				Set it to "YES" to enable openttd
# openttd_flags="" (string):	Set to "" by default
#				Extra flags passed to start command
#
# Note: flags -D and -f are set by default.
#

. /etc/rc.subr

name="openttd"
rcvar=openttd_enable
command="%%PREFIX%%/bin/${name}"
command_args="-s null -m null -v null -b null -D -f"

load_rc_config ${name}

: ${openttd_enable="NO"}

run_rc_command "$1"