Bug 260169

Summary: emulators/qemu-guest-agent: pkg-message is probably out of sync with rc.d
Product: Ports & Packages Reporter: Lapo Luchini <lapo>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: New ---    
Severity: Affects Some People CC: zhecka
Priority: --- Flags: bugzilla: maintainer-feedback? (zhecka)
Version: Latest   
Hardware: Any   
OS: Any   

Description Lapo Luchini 2021-12-02 15:01:25 UTC
This is the package message:

# pkg install qemu-guest-agent
=======================================================
Modify your `/etc/rc.conf` by adding these settings

qemu_guest_agent_enable="YES"
qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log"

and run
# service qemu-guest-agent start

For detailed help use `qemu-ga -h`
=======================================================

…to which my first reaction is: if that's the correct value to use, why saying it in the message instead of actually using it as a default in the rc.d?

Turns out the comment in the rc.d explains better: the default is fine with only "-d", you can add "-v -l …" if you want more logs; which makes sense to me, but in that case I'd suggest re-wording the pkg-message (or removing it altogether, how to enable and start a service is pretty common information IMHO, nothing specific to this package).