socsvn commit: r237729 -
soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d
tzabal at FreeBSD.org
tzabal at FreeBSD.org
Thu Jun 14 21:28:52 UTC 2012
Author: tzabal
Date: Thu Jun 14 21:28:49 2012
New Revision: 237729
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=237729
Log:
Fully functional rc.d script crashreportd. It can start the 'command' as a real daemon and the standard arguments (start, stop, restart, rcvar and status) are supported.
Modified:
soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd
Modified: soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd
==============================================================================
--- soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd Thu Jun 14 21:17:35 2012 (r237728)
+++ soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd Thu Jun 14 21:28:49 2012 (r237729)
@@ -9,13 +9,9 @@
name="crashreportd"
rcvar="crashreportd_enable"
command="/usr/sbin/${name}"
+command_interpreter="/bin/sh"
command_args="0<&- 1>/dev/null 2>&1 &"
-#pidfile="/var/run/${name}.pid"
+pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"
-
-# FIX: Make the rc.d script to support all the default arguments.
-# Work: start, rcvar
-# Not work: stop, restart, status, (poll?)
-# Check with: ps ux | grep crashreportd
\ No newline at end of file
More information about the svn-soc-all
mailing list