blob: 031a2274e13ecbd9b5043e31b03b747752bf4f9b (
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
29
30
|
#!/bin/sh
#
# $FreeBSD$
#
# 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"
|