summaryrefslogtreecommitdiff
path: root/games/cockatrice/files/servatrice.in
blob: a4985fa48ecc72fad3fff8c80555e31ac0f25fa8 (plain)
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
31
#!/bin/sh

# PROVIDE: servatrice
# REQUIRE: LOGIN %%mysql%%
# KEYWORD: shutdown

#
# Add the following line to /etc/rc.conf to enable servatrice:
# servatrice_enable (bool):	Set to "NO" by default.
# servatrice_optfile (str):	Server-specific option file.
#			Set it in the rc.conf or default behaviour of
#			`servatriced_safe` itself, will be picking
#			${servatrice_confdir}/my.cnf if it exists.
# servatrice_pidfile (str):	Custum PID file path and name.
#			Default to "${servatrice_dbdir}/${hostname}.pid".
# servatrice_args (str):	Custom additional arguments to be passed
#			to servatriced_safe (default empty).
#

. /etc/rc.subr

name="servatrice"

load_rc_config $name

: ${servatrice_enable="NO"}
: ${servatrice_flags="--config /usr/local/etc/servatrice.ini 2>1 & > /dev/null"}

command="/usr/local/bin/servatrice"

run_rc_command "$1"