View | Details | Raw Unified | Return to bug 279251
Collapse All | Expand All

(-)b/games/minetest/files/minetest.in (-3 / +6 lines)
Lines 8-14 Link Here
8
#
8
#
9
# minetest_enable (bool):  Set to "NO" by default
9
# minetest_enable (bool):  Set to "NO" by default
10
#                          Set it to "YES" to enable minetest server
10
#                          Set it to "YES" to enable minetest server
11
# minetest_conffile (str): Path to config file (required).
11
# minetest_config (str):   Path to config file (required).
12
#                          (default: /usr/local/etc/minetest.conf)
12
#                          (default: /usr/local/etc/minetest.conf)
13
# minetest_rundir (str):   Path to directory holding a pidfile.
13
# minetest_rundir (str):   Path to directory holding a pidfile.
14
#                          (default: /var/run/minetest)
14
#                          (default: /var/run/minetest)
Lines 20-25 Link Here
20
#                          (default: /var/log/minetest)
20
#                          (default: /var/log/minetest)
21
# minetest_dbdir (str):    Path to world database directory
21
# minetest_dbdir (str):    Path to world database directory
22
#                          (default: /var/db/minetest)
22
#                          (default: /var/db/minetest)
23
# minetest_args (str):     Arguments
24
#                          (default: --logfile ${minetest_logdir}/debug.log --world ${minetest_dbdir}/world ${minetest_cli_args})
25
# minetest_cli_args (str)  Additional arguments
23
26
24
. /etc/rc.subr
27
. /etc/rc.subr
25
28
Lines 35-48 load_rc_config ${name} Link Here
35
: ${minetest_group="minetest"}
38
: ${minetest_group="minetest"}
36
: ${minetest_logdir="/var/log/minetest"}
39
: ${minetest_logdir="/var/log/minetest"}
37
: ${minetest_dbdir="/var/db/minetest"}
40
: ${minetest_dbdir="/var/db/minetest"}
38
: ${minetest_args:="--logfile ${minetest_logdir}/debug.log --world ${minetest_dbdir}/world ${minetest_flags}"}
41
: ${minetest_args:="--logfile ${minetest_logdir}/debug.log --world ${minetest_dbdir}/world ${minetest_cli_args}"}
39
42
40
pidfile=
43
pidfile=
41
44
42
case "${minetest_args}" in
45
case "${minetest_args}" in
43
*--config\ *)
46
*--config\ *)
44
	echo "Warning \$minetest_args includes --config option." \
47
	echo "Warning \$minetest_args includes --config option." \
45
	     "Please use \$minetest_conffile instead."
48
	     "Please use \$minetest_config instead."
46
	;;
49
	;;
47
*)
50
*)
48
	minetest_args="--config ${minetest_config} ${minetest_args}"
51
	minetest_args="--config ${minetest_config} ${minetest_args}"

Return to bug 279251