Public bug reported:

Binary package hint: unbound
It just said:

Setting up unbound (1.0.0-3) ...
 * Starting recursive DNS server unbound                                        
   invoke-rc.d: initscript unbound, action "start" failed.
dpkg: error processing unbound (--configure):
 subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
 unbound
E: Sub-process /usr/bin/dpkg returned an error code (1)

Trying manually:

[100 [EMAIL PROTECTED] ~]$ sudo sh -x /etc/init.d/unbound start
...
+ printf  * Starting recursive DNS server unbound       
 * Starting recursive DNS server unbound       + /usr/bin/expr 83 - 1
+ /usr/bin/tput hpa 82
                                                                                
  + printf  
 + already_running
+ return start-stop-daemon --start --pidfile /var/lib/unbound/unbound.pid 
--startas /usr/sbin/unbound --test

But it's not running:

[2 [EMAIL PROTECTED] ~]$ ps uaxw|grep unbound
tv       18362  0.0  0.0   8284   784 pts/0    R+   17:20   0:00 grep unbound

Editing the init script and removing "return" from already_running made
it work:

already_running() {
    start-stop-daemon --start --pidfile $PIDFILE \
        --startas $DAEMON --test >/dev/null 2>&1
}

Posix shell stuff? My /bin/sh is dash

** Affects: unbound (Ubuntu)
     Importance: Undecided
         Status: New

-- 
init script fails to start unbound with /bin/sh=dash
https://bugs.launchpad.net/bugs/281033
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to