summaryrefslogtreecommitdiff
path: root/games/quaqut/files/quaqut.in
blob: c3b4233b784d216f7a5a4e1869b5f7a94d64a000 (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
32
33
#!/bin/sh
#
# $FreeBSD$
#
# PROVIDE: quaqut
# REQUIRE: NETWORKING
#
# Add the following line to /etc/rc.conf[.local] to enable quaqut
#
# quaqut_enable (bool):		Set to "NO" by default.
#				Set it to "YES" to enable quaqut.
# quaqut_host (str):		Server hostname.
# quaqut_logfile (str):		Logfile name.
# quaqut_interval (number):	Query interval duration.
#				It must be a number between 10 and 9999.
#

. /etc/rc.subr

name="quaqut"
rcvar=quaqut_enable

load_rc_config $name

: ${quaqut_enable="NO"}
: ${quaqut_host="some.ut2004server.tld"}
: ${quaqut_logfile="/var/log/quaqut.log"}
: ${quaqut_interval="10"}

command="/usr/local/bin/quaqut"
command_args="-d ${quaqut_interval} ${quaqut_flags} ${quaqut_host} >> ${quaqut_logfile} &"

run_rc_command "$1"