The rc script included with the port, installed to /usr/local/etc/rc.d/musicpd, is not run at boot, despite placing the appropriate entry in /etc/rc.conf. Running the script manually, however, does start the service. Fix: Patch attached. Patch attached with submission follows: How-To-Repeat: Install the audio/musicpd port add 'musicpd_enable="YES"' to /etc/rc.conf reboot
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Responsible Changed From-To: freebsd-ports-bugs->rafan I'll take it.
rafan 2008-04-04 06:20:33 UTC FreeBSD ports repository Modified files: audio/musicpd Makefile audio/musicpd/files musicpd.sh.in Log: - rc script was not executed at boot due to empty REQUIRE and BEFORE. Fix that by using REQUIRE: LOGIN per Porter's Handbook. - While I'm here, change default variable assignment to the way suggested by Porter's Handbook. - Bump PORTREVISION PR: ports/121772 (based on) Submitted by: Justin Stallard <justin at isis.poly.edu> Approved by: maintainer timeout (2 weeks) Revision Changes Path 1.33 +1 -0 ports/audio/musicpd/Makefile 1.2 +4 -6 ports/audio/musicpd/files/musicpd.sh.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: feedback->closed Committed with changes. Thanks!
The real missing dependency is not on LOGIN. When the port is built, if the avahi-app port is installed in the build machine, a stealth RUN_DEPEND on avahi-app is linked in mpd: I mean, the binary fails to start if avahi-daemon is not running, but avahi-app is not even listed as a dependency for the package. The startup problem arises because avahi-daemon installs an old-style startup script (ending in .sh), so it is normally started after musicpd. The correct solution would be to convert avahi-daemon to rcNG, and make musicpd depend on avahi-daemon at both the startup script and the pkg levels. I'll see if I can implement this in a patch. Angelo.