unbound want start automatically after reboot

FritzS - gmx fritzs at gmx.net
Tue Jan 6 06:58:52 PST 2015


> Am 06.01.2015 um 11:48 schrieb Ryan Schmidt <ryandesign at macports.org>:
> 
> 
> On Jan 5, 2015, at 7:43 AM, FritzS wrote:
> 
>> I use Yosemite 10.10.1 and port version 2.3.3
>> 
>> I installed unbound and it works well - but after reboot my mac it don’t start automatically
>> 
>> If I make 
>> $ sudo port load unbound
>> or
>> $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.unbound.plist
>> 
>> I comes the message
>> /opt/local/etc/LaunchDaemons/org.macports.unbound/org.macports.unbound.plist: Operation already in progress
>> 
>> But unbound dont run! No entries in unbound.log at this time. No entry in ‚Aktivitätsanzeige‘ (I don’t know the right Apple term in english).
>> 
>> Then I make
>> 
>> $ sudo port unload unbound
>> $ sudo port load unbound
>> 
>> $ ps ax | grep -i unbound
>> 466   ??  Ss     0:00.01 /opt/local/bin/daemondo --label=unbound --start-cmd /opt/local/etc/LaunchDaemons/org.macports.unbound/unbound.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.unbound/unbound.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.unbound/unbound.wrapper restart ; --pid=none
>> 471   ??  Ss     0:00.05 /opt/local/sbin/unbound
>> 480 s001  S+     0:00.00 grep -i unbound
>> 
>> Now it runs and in unbound log comes:
>> 
>> Jan 05 07:32:05 unbound[471:0] notice: init module 0: validator
>> Jan 05 07:32:05 unbound[471:0] notice: init module 1: iterator
>> Jan 05 07:32:05 unbound[471:0] info: start of service (unbound 1.5.1).
>> Jan 05 07:32:05 unbound[471:1] info: 127.0.0.1 crl.apple.com. AAAA IN
>> Jan 05 07:32:12 unbound[471:0] info: 127.0.0.1 crl.apple.com. A IN
>> 
>> What could I do to solve this problem?
> 
> So... it's running now? But if you restart it doesn't run until you unload and then load it again?

Now its running - if I restart it don’t running, but if I make a command, in this case, to start it, the message tells its running - but the daemon are not seen. I must unload and load them.

I don’t see the other processes from macports at this time as unbound fails, so as daemondo, cfprefsd  

Next reboot I will protocol this exactly and look for the syslog entries at this special time.

What is the exactly sequence of the macports and unbound start? As far as I know the unbound user with UID 50x (and non root user) could support a port lower than 1024. 

How goes round this security barrier? HomeBrew use an user with an UID lower then 500, this user could provide a lower port such as DNS 53 without running as root - are this right for OS like an BSD so as OS X is.

> 
> That sounds like it's trying to load at startup before one of its dependencies is ready.

But what could I do?

> 
> Possibilities for such a missing dependency include the network, or a disk (is MacPorts installed on a separate partition from your OS X boot partition?)

All installed on the same 1TB partition.

PS: Please excuse my not so good english! ;-)





More information about the macports-users mailing list