svn commit: r259463 - in head/etc: defaults rc.d

Pawel Jakub Dawidek pjd at FreeBSD.org
Mon Dec 16 11:04:00 UTC 2013


Author: pjd
Date: Mon Dec 16 11:03:59 2013
New Revision: 259463
URL: http://svnweb.freebsd.org/changeset/base/259463

Log:
  Start-up script for casperd daemon.
  
  Sponsored by:	The FreeBSD Foundation

Added:
  head/etc/rc.d/casperd   (contents, props changed)
Modified:
  head/etc/defaults/rc.conf
  head/etc/rc.d/Makefile

Modified: head/etc/defaults/rc.conf
==============================================================================
--- head/etc/defaults/rc.conf	Mon Dec 16 10:50:13 2013	(r259462)
+++ head/etc/defaults/rc.conf	Mon Dec 16 11:03:59 2013	(r259463)
@@ -658,6 +658,7 @@ newsyslog_enable="YES"	# Run newsyslog a
 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) ##########

Modified: head/etc/rc.d/Makefile
==============================================================================
--- head/etc/rc.d/Makefile	Mon Dec 16 10:50:13 2013	(r259462)
+++ head/etc/rc.d/Makefile	Mon Dec 16 11:03:59 2013	(r259463)
@@ -26,6 +26,7 @@ FILES=	DAEMON \
 	bridge \
 	bsnmpd \
 	${_bthidd} \
+	casperd \
 	ccd \
 	cleanvar \
 	cleartmp \

Added: head/etc/rc.d/casperd
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/etc/rc.d/casperd	Mon Dec 16 11:03:59 2013	(r259463)
@@ -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"


More information about the svn-src-all mailing list