#!/bin/sh
#
# $FreeBSD: ports/dns/totd/files/totd.in,v 1.1 2007/03/25 21:21:39 pav Exp $
#
# PROVIDE: totd
# REQUIRE: SERVERS
# BEFORE: DAEMON
#
# NOTE for FreeBSD 5.0+:
# If you want this script to start with the base rc scripts
# move totd.sh to /etc/rc.d/totd
prefix=/usr/local
# 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_program="${prefix}/sbin/totd" # Location of totd
totd_flags=${totd_flags:-""} # Flags to totd program
. /etc/rc.subr
name="totd"
rcvar=`set_rcvar`
command="${prefix}/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="${prefix}/etc/${name}.conf"
load_rc_config $name
run_rc_command "$1"
syntax highlighted by Code2HTML, v. 0.9.1