FreeBSD Bugzilla – Attachment 202231 Details for
Bug 235915
dns/nsnotifyd [patch] rc script - multiple instances.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
nsnotifyd rc
nsnotifyd.diff (text/plain), 951 bytes, created by
Leo Vandewoestijne
on 2019-02-21 12:02:43 UTC
(
hide
)
Description:
nsnotifyd rc
Filename:
MIME Type:
Creator:
Leo Vandewoestijne
Created:
2019-02-21 12:02:43 UTC
Size:
951 bytes
patch
obsolete
>--- nsnotifyd.orig/files/nsnotifyd.in 2019-02-20 14:30:27.593606000 +0000 >+++ nsnotifyd/files/nsnotifyd.in 2019-02-20 14:52:27.537505000 +0000 >@@ -15,19 +15,31 @@ > > . /etc/rc.subr > >-name=nsnotifyd >-rcvar=nsnotifyd_enable >+case "$0" in >+/etc/rc*) >+ # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), >+ # so get the name of the script from $_file >+ name="$_file" >+ ;; >+*) >+ name="$0" >+ ;; >+esac >+ >+name="${name##*/}" >+rcvar=${name}_enable > > load_rc_config $name > >-: ${nsnotifyd_enable:=NO} >+eval ": \${${name}_enable:=\"NO\"}" >+eval ": \${${name}_flags:=\"\"}" > > command="/usr/local/bin/nsnotifyd" > start_precmd=precmd > > precmd() > { >- if [ "${nsnotifyd_flags}x" = "x" ]; then >+ if [ "${${name}_flags}x" = "x" ]; then > echo "Please set your required service options via nsnotifyd_flags in /etc/rc.conf." > echo "Check the contents of man nsnotifyd for more details." > exit 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 235915
: 202231 |
206095