unbound want start automatically after reboot

FritzS - gmx fritzs at gmx.net
Thu Jan 8 09:03:43 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! ;-)

After reboot  - unbound don’t run too.

$ ps ax | grep -i opt
   37   ??  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
  352   ??  S      0:00.02 /opt/local/bin/gpg-agent --write-env-file --no-use-standard-socket --launchd
  
$ ps ax | grep -i daemondo   [under user root]
   37   ??  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
  444 s001  R+     0:00.00 grep -i daemondo
  
$ ps ax | grep -i mdworker [under user unbound]
  217   ??  S      0:00.10 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker-lsb -c MDSImporterWorker -m com.apple.mdworker.lsb
  392   ??  S      0:00.04 /System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Versions/A/Support/mdworker -s mdworker -c MDSImporterWorker -m com.apple.mdworker.shared
  446 s001  R+     0:00.00 grep -i mdworker 
  
$ ps ax | grep -i cfprefsd  [under user unbound]
  218   ??  S      0:00.02 /usr/sbin/cfprefsd agent  

No other daemon, agent runs under user macports or unbound

after
$ sudo port unload unbound
$ sudo port load unbound

systemlog
Jan  8 17:29:27  com.apple.xpc.launchd[1] (org.macports.gpg-agent): The ServiceIPC key is no longer respected. Please remove it.
Jan  8 17:52:00  com.apple.xpc.launchd[1] (org.macports.unbound): The Debug key is no longer respected. Please remove it.
Jan  8 17:52:00  com.apple.xpc.launchd[1] (org.macports.unbound): This service is defined to be constantly running and is inherently inefficient.   

I don’t see no other relevant messages in system.log too.

What could I do to resolve this problem?

-- 
FritzS 
fritzs at gmx.net






More information about the macports-users mailing list