FreeBSD Bugzilla – Attachment 206095 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]
patched rc.d script, with added debugging
nsnotifyd (text/plain), 1.07 KB, created by
Dan Langille
on 2019-07-26 23:35:55 UTC
(
hide
)
Description:
patched rc.d script, with added debugging
Filename:
MIME Type:
Creator:
Dan Langille
Created:
2019-07-26 23:35:55 UTC
Size:
1.07 KB
patch
obsolete
>#!/bin/sh ># ># Author: Mark Felder <feld@FreeBSD.org> ># ># $FreeBSD: head/dns/nsnotifyd/files/nsnotifyd.in 466599 2018-04-05 20:37:15Z feld $ ># > ># PROVIDE: nsnotifyd ># REQUIRE: LOGIN ># KEYWORD: shutdown > ># Add the following lines to /etc/rc.conf to enable nsnotifyd: ># nsnotifyd_enable="YES" ># nsnotifyd_flags="<set as needed>" > >. /etc/rc.subr > >echo $0 >echo $_file > >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 > >eval ": \${${name}_enable:=\"NO\"}" >eval ": \${${name}_flags:=\"\"}" > >echo $name >echo ${name}_enable >echo ${name}_flags >exit stopping > >command="/usr/local/bin/nsnotifyd" >start_precmd=precmd > >precmd() >{ > 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 > fi >} > >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 Raw
Actions:
View
Attachments on
bug 235915
:
202231
| 206095