Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Jun 2012 21:28:50 +0000
From:      tzabal@FreeBSD.org
To:        svn-soc-all@FreeBSD.org
Subject:   socsvn commit: r237729 - soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d
Message-ID:  <20120614212850.7E0A0106564A@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120614212850.7E0A0106564A>