FreeBSD Bugzilla – Attachment 71092 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]
diff
diff (text/plain), 1.27 KB, created by
Sean McAfee
on 2006-12-06 00:07:25 UTC
(
hide
)
Description:
diff
Filename:
MIME Type:
Creator:
Sean McAfee
Created:
2006-12-06 00:07:25 UTC
Size:
1.27 KB
patch
obsolete
>@@ -1,29 +1,28 @@ > #!/bin/sh >+# PROVIDE: smokeping >+# REQUIRE: DAEMON >+# BEFORE: LOGIN >+# KEYWORD: shutdown > >-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 >+. /etc/rc.subr > >-exit 0 >+name=smokeping >+rcvar=`set_rcvar` >+smokeping_user=${smokeping_user-"smokeping"} >+ >+command=/usr/local/bin/smokeping >+_pidprefix=/var/run/smokeping >+pidfile=${_pidprefix}/smokeping.pid >+ >+extra_commands="reload" >+reload_cmd=${name}_reloadcmd >+ >+smokeping_reloadcmd() >+( >+ $command --reload >+ >+) >+ >+ >+load_rc_config $name >+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