FreeBSD Bugzilla – Attachment 250890 Details for
Bug 279241
net/mDNSResponder: add resume action to rc scripts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Add extra command "resume" to mdnsd/mdnsresponderposix rc scripts
mdnsresponder_resume.diff (text/plain), 1.24 KB, created by
Matthieu Volat
on 2024-05-23 06:25:52 UTC
(
hide
)
Description:
Add extra command "resume" to mdnsd/mdnsresponderposix rc scripts
Filename:
MIME Type:
Creator:
Matthieu Volat
Created:
2024-05-23 06:25:52 UTC
Size:
1.24 KB
patch
obsolete
>diff --git a/net/mDNSResponder/files/mdnsd.in b/net/mDNSResponder/files/mdnsd.in >index deb5eac0940f..66a8ad41dbc2 100644 >--- a/net/mDNSResponder/files/mdnsd.in >+++ b/net/mDNSResponder/files/mdnsd.in >@@ -2,7 +2,7 @@ > > # PROVIDE: mdnsd > # REQUIRE: DAEMON >-# KEYWORD: shutdown >+# KEYWORD: resume shutdown > > . /etc/rc.subr > >@@ -15,6 +15,13 @@ load_rc_config $name > : ${mdnsd_pidfile="/var/run/${name}.pid"} > > command="%%PREFIX%%/sbin/${name}" >+extra_commands="resume" >+resume_cmd="mdnsd_resume" > pidfile="${mdnsd_pidfile}" > >+mdnsd_resume() >+{ >+ run_rc_command restart >+} >+ > run_rc_command $* >diff --git a/net/mDNSResponder/files/mdnsresponderposix.in b/net/mDNSResponder/files/mdnsresponderposix.in >index 149e1edb10e7..b548b5340034 100644 >--- a/net/mDNSResponder/files/mdnsresponderposix.in >+++ b/net/mDNSResponder/files/mdnsresponderposix.in >@@ -2,7 +2,7 @@ > > # PROVIDE: mdnsresponderposix > # REQUIRE: DAEMON >-# KEYWORD: shutdown >+# KEYWORD: resume shutdown > > . /etc/rc.subr > >@@ -16,5 +16,11 @@ load_rc_config $name > > command="%%PREFIX%%/bin/mDNSResponderPosix" > command_args="-b -P ${mdnsresponderposix_pidfile}" >+extra_commands="resume" >+resume_cmd="mdnsresponderposix_resume" >+ >+mdnsresponderposix_resume() { >+ run_rc_command restart >+} > > run_rc_command $*
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 279241
: 250890