Bug 279241 - net/mDNSResponder: add resume action to rc scripts
Summary: net/mDNSResponder: add resume action to rc scripts
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-23 06:25 UTC by Matthieu Volat
Modified: 2024-05-23 06:25 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (sunpoet)


Attachments
Add extra command "resume" to mdnsd/mdnsresponderposix rc scripts (1.24 KB, patch)
2024-05-23 06:25 UTC, Matthieu Volat
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matthieu Volat 2024-05-23 06:25:52 UTC
Created attachment 250890 [details]
Add extra command "resume" to mdnsd/mdnsresponderposix rc scripts

Hi,

I'm playing a bit with suspend/resume (through acpiconf -s3) and notice that mdnsd & mdnsresponderposix seems to need a restart after resume.

rc.resume already supports checking rc scripts needing an action after resume ("resume" extra command), including those installed through ports -- as far as I can see, only ntpd use this for now.

I wrote the necessary code, would you consider applying it?

QA: no makefile/build/plist changes

New action can be tested running "/etc/rc.resume acpi 3" -> mdnsd & mdnsresponder posix should be restarted if enabled.

Regards,

M. Volat