Bug 87163 - current dnsmasq port init script is broken
Summary: current dnsmasq port init script is broken
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-09 15:30 UTC by Michael Blatt
Modified: 2005-10-11 19:26 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Blatt 2005-10-09 15:30:16 UTC
The dnsmasq port that was installed with 5.4-RELEASE was functioning properly.
A cvsup to update the ports tree has probably loaded a new version of that port, which installs its initialisation script under /etc/rc.d/dnsmasq rather than /usr/local/etc/rc.d/dnsmasq.sh
From this point on, any subsequent reboots will ignore the dnsmasq_enables="YES" in rc.conf.
You need to manually log into the machine and start it with /etc/rc.d/dnsmasq start
It then works normally.
This link suggests it is a general problem: http://www.bsdforums.org/forums/showthread.php?p=188651

Fix: 

Not really a fix... but this works:
ln -s /etc/rc.d/dnsmasq /usr/local/etc/rc.d/dnsmasq.sh
How-To-Repeat: - install 5.4-RELEASE
- portinstall dnsmasq
- check that /usr/local/etc/rc.d/dnsmasq.sh exists
- enable dnsmasq in rc.conf
- reboot
- check that dnsmasq is running
- update ports tree
- portupgrade dnsmasq
- check that /usr/local/etc/rc.d/dnsmasq.sh no longer exists
- check that /etc/rc.d/dnsmasq exists
- reboot
- check that dnsmasq is not running after boot depsite rc.conf.
Comment 1 Sergey Matveychuk freebsd_committer freebsd_triage 2005-10-11 19:26:27 UTC
State Changed
From-To: open->closed

Fix was committed, thanks!