FreeBSD Bugzilla – Attachment 71090 Details for
Bug 103626
[patch] Update the net/smokeping rc script to something somewhat current
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.50 KB, created by
Brad Davis
on 2006-09-25 18:00:35 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Brad Davis
Created:
2006-09-25 18:00:35 UTC
Size:
1.50 KB
patch
obsolete
>--- smokeping.sh.org Fri Sep 22 17:09:33 2006 >+++ smokeping.sh.new Fri Sep 22 19:50:35 2006 >@@ -1,29 +1,30 @@ > #!/bin/sh >+# $FreeBSD: $ > >-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then >- echo "$0: Cannot determine the PREFIX" >&2 >- exit 1 >-fi >- >-case "$1" in >-start) >- [ -r ${PREFIX}/etc/smokeping/config ] && \ >- su -f -m smokeping -c ${PREFIX}/bin/smokeping > /dev/null && \ >- echo -n ' smokeping' >- ;; >-restart) >- [ -r ${PREFIX}/etc/smokeping/config ] && \ >- su -f -m smokeping -c "${PREFIX}/bin/smokeping --restart" > /dev/null && \ >- echo -n ' smokeping' >- ;; >-stop) >- [ -r ${PREFIX}/var/smokeping/smokeping.pid ] && \ >- su -f -m smokeping -c "kill `cat ${PREFIX}/var/smokeping/smokeping.pid`" > /dev/null && \ >- echo -n ' smokeping' >- ;; >-*) >- echo "Usage: `basename $0` {start|restart|stop}" >&2 >- ;; >-esac >+# PROVIDE: smokeping >+# REQUIRE: DAEMON >+# BEFORE: LOGIN >+# KEYWORD: shutdown > >-exit 0 >+# Define these smokeping_* variables in one of these files: >+# /etc/rc.conf >+# /etc/rc.conf.local >+# /etc/rc.conf.d/smokeping >+# >+# DO NOT CHANGE THESE DEFAULT VALUES HERE >+# >+smokeping_enable=${smokeping_enable-"NO"} >+smokeping_flags=${smokeping_flags-""} >+smokeping_pidfile=${smokeping_pidfile-"/usr/local/var/smokeping/smokeping.pid"} >+ >+. /etc/rc.subr >+ >+name="smokeping" >+rcvar=`set_rcvar` >+command="/usr/local/bin/smokeping" >+ >+load_rc_config $name >+ >+pidfile="${smokeping_pidfile}" >+ >+run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 103626
: 71090 |
71091
|
71092