Date: Sun, 10 Jun 2012 21:37:09 +0000 From: tzabal@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r237429 - in soc2012/tzabal/server-side/akcrs-release/9.0.0/etc: defaults rc.d Message-ID: <20120610213709.0C95E106566C@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: tzabal Date: Sun Jun 10 21:37:08 2012 New Revision: 237429 URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=237429 Log: Add three variables to /etc/defaults/rc.conf for the rc.d script crashreportd Modified: soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/defaults/rc.conf soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd Modified: soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/defaults/rc.conf ============================================================================== --- soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/defaults/rc.conf Sun Jun 10 20:24:01 2012 (r237428) +++ soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/defaults/rc.conf Sun Jun 10 21:37:08 2012 (r237429) @@ -593,6 +593,9 @@ lpd_program="/usr/sbin/lpd" # path to lpd, if you want a different one. lpd_flags="" # Flags to lpd (if enabled). nscd_enable="NO" # Run the nsswitch caching daemon. +crashreportd_enable="NO" # Run the crashreportd daemon. +crashreportd_program="/usr/sbin/crashreportd" # Path to crashreportd daemon. +crashreportd_flags="" # Additional flags for crahsreportd. chkprintcap_enable="NO" # Run chkprintcap(8) before running lpd. chkprintcap_flags="-d" # Create missing directories by default. dumpdev="NO" # Device to crashdump to (device name, AUTO, or NO). 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 Sun Jun 10 20:24:01 2012 (r237428) +++ soc2012/tzabal/server-side/akcrs-release/9.0.0/etc/rc.d/crashreportd Sun Jun 10 21:37:08 2012 (r237429) @@ -0,0 +1,20 @@ +#!/bin/sh + +. /etc/rc.subr + +name="crashreportd" +rcvar="crashreportd_enable" +command="/usr/sbin/${name}" + +# Check if this is correct, taken from sshd rc.d script +pidfile="/var/run/${name}.pid" + +start_cmd="crashreportd_start" + +crashreportd_start() +{ + echo "Inside crashreportd_start()." +} + +load_rc_config $name +run_rc_command $1 \ No newline at end of file
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120610213709.0C95E106566C>