summaryrefslogtreecommitdiff
path: root/dns/totd/files/totd.in
blob: c0c9eb9a8e5003e09f340ab222c1160b31ed18b8 (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
#!/bin/sh
#
# $FreeBSD$
#

# PROVIDE: totd
# REQUIRE: SERVERS
# BEFORE:  DAEMON

# Define these totd_* variables in one of these files:
#	/etc/rc.conf
#	/etc/rc.conf.local
#	/etc/rc.conf.d/totd
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
#
totd_enable=${totd_enable:-"NO"}		# Enable totd
# totd_flags="<set as needed>"

. /etc/rc.subr

name="totd"
rcvar=totd_enable
command="%%PREFIX%%/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="%%PREFIX%%/etc/${name}.conf"

load_rc_config $name
run_rc_command "$1"