aboutsummaryrefslogtreecommitdiff
path: root/games/mtaserver/files/mtad.in
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2006-12-17 06:39:59 +0000
committerRong-En Fan <rafan@FreeBSD.org>2006-12-17 06:39:59 +0000
commit2c113acf308144488a1a52b7f6215cbcdee7c562 (patch)
treeb1f2f1c6f592fbf8f61a3364dd0baa8790415d01 /games/mtaserver/files/mtad.in
parent98c4d8690109f687f20ad590f2c32b3448660481 (diff)
downloadports-2c113acf308144488a1a52b7f6215cbcdee7c562.tar.gz
ports-2c113acf308144488a1a52b7f6215cbcdee7c562.zip
Notes
Diffstat (limited to 'games/mtaserver/files/mtad.in')
-rw-r--r--games/mtaserver/files/mtad.in6
1 files changed, 4 insertions, 2 deletions
diff --git a/games/mtaserver/files/mtad.in b/games/mtaserver/files/mtad.in
index 9e1149dfa576..b28e342773c5 100644
--- a/games/mtaserver/files/mtad.in
+++ b/games/mtaserver/files/mtad.in
@@ -19,10 +19,12 @@ load_rc_config $name
: ${mtad_enable="NO"}
: ${mtad_chdir="%%MTADIR%%"}
+: ${mtad_config="%%PREFIX%%/etc/%%MTADIRE%%/mtaserver.conf"}
+: ${mtad_logfile="/var/log/mtaserver.log"}
command="%%MTADIR%%/mtaserver"
-command_args="-b 2>&1 > /dev/null &"
-required_files="%%MTADIR%%/mtaserver.conf"
+command_args="-b -c ${mtad_config} -l ${mtad_logfile} 2>&1 > /dev/null &"
+required_files=${mtad_config}
start_precmd="mtad_prestart"
stop_precmd="mtad_prestop"