diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index aa8a010549df..f217f420bcab 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -658,6 +658,7 @@ newsyslog_enable="YES" # Run newsyslog at startup. newsyslog_flags="-CN" # Newsyslog flags to create marked files mixer_enable="YES" # Run the sound mixer. opensm_enable="NO" # Opensm(8) for infiniband devices defaults to off +casperd_enable="NO" # casperd(8) daemon ############################################################## ### Jail Configuration (see rc.conf(5) manual page) ########## diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index 375da6d131cb..7cb649975cf7 100644 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -26,6 +26,7 @@ FILES= DAEMON \ bridge \ bsnmpd \ ${_bthidd} \ + casperd \ ccd \ cleanvar \ cleartmp \ diff --git a/etc/rc.d/casperd b/etc/rc.d/casperd new file mode 100644 index 000000000000..0b80169a0262 --- /dev/null +++ b/etc/rc.d/casperd @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +# PROVIDE: casperd +# REQUIRE: NETWORKING syslogd +# BEFORE: DAEMON +# KEYWORD: shutdown + +. /etc/rc.subr + +name="casperd" +rcvar="casperd_enable" +pidfile="/var/run/${name}.pid" +command="/sbin/${name}" + +load_rc_config $name +run_rc_command "$1"