Index: head/net/quoted/files/quoted.in =================================================================== --- head/net/quoted/files/quoted.in (revision 238469) +++ head/net/quoted/files/quoted.in (revision 238470) @@ -1,74 +1,76 @@ #!/bin/sh # +# $FreeBSD$ +# # PROVIDE: quoted # REQUIRE: LOGIN -# KEYWORD: FreeBSD shutdown +# KEYWORD: shutdown # AUTHOR: Bob Frazier quoted_enable=${quoted_enable:-"NO"} user="nobody" . %%RC_SUBR%% name="quoted" rcvar=`set_rcvar` command="%%PREFIX%%/bin/${name}" command_args="-d -p:17" command_plus_args="${command} ${command_args}" pidfile="/var/run/${name}.pid" required_files="%%PREFIX%%/etc/quotes" start_cmd="${name}_start" stop_cmd="${name}_stop" quoted_start() { pid=$(check_pidfile ${pidfile} ${command}) if [ -z ${pid} ]; then if [ -e ${required_files} ] ; then ${command_plus_args} sleep 1 pid=`ps ax | awk '{if (match($5, ".*/quoted$") || $5 == "quoted") print $1}` if [ -z ${pid} ]; then echo "${name} failed to start" return 1 else echo ${pid} >${pidfile} echo "${name} started." pid=$(check_pidfile ${pidfile} ${command}) if [ -z ${pid} ]; then echo "Warning: pid file ${pidfile} is corrupt." echo "The ${name} daemon may not stop properly via the rc.d script." fi return 0; fi else echo "Required file(s) ${required_files} missing" fi else echo "${name} is already running" return 0 # not an error fi # if I get here something went wrong return 2 } quoted_stop() { pid=$(check_pidfile ${pidfile} ${command}) if [ -z ${pid} ]; then echo ${name} not running? Check ${pidfile} return 1 fi echo "Stopping ${name}" kill -${sig_stop:-TERM} ${pid} [ $? -ne 0 ] && [ -z "$rc_force" ] && return 1 wait_for_pids ${pid} } load_rc_config $name run_rc_command "$1" Property changes on: head/net/quoted/files/quoted.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/sysutils/healthd/files/healthd.in =================================================================== --- head/sysutils/healthd/files/healthd.in (revision 238469) +++ head/sysutils/healthd/files/healthd.in (revision 238470) @@ -1,35 +1,35 @@ #!/bin/sh # -# $Id: healthd.sh,v 1.1.2.7 2004/06/23 14:11:57 housley Exp $ +# $FreeBSD$ # +# $Id: healthd.sh,v 1.1.2.7 2004/06/23 14:11:57 housley Exp $ # PROVIDE: healthd # REQUIRE: LOGIN -# KEYWORD: FreeBSD shutdown +# KEYWORD: shutdown -# # Add the following line to /etc/rc.conf to enable healthd: # #healthd_enable="YES" # # For IPv4 only operation add the following line to /etc/rc.conf: # #healthd_flags="-6" # # Other options are listed in healthd(8) # . %%RC_SUBR%% name=healthd rcvar=`set_rcvar` extra_commands="reload" command=%%PREFIX%%/sbin/healthd required_files=%%PREFIX%%/etc/${name}.conf load_rc_config ${name} healthd_enable=${healthd_enable:-"NO"} run_rc_command "$1" Property changes on: head/sysutils/healthd/files/healthd.in ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.2 \ No newline at end of property +1.3 \ No newline at end of property