#!/bin/sh # 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="" . /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"