[SRU] daemontools-run needs to work with upstart

Bug #253465 reported by Cory Wright on 2008-07-30
836
This bug affects 96 people
Affects Status Importance Assigned to Milestone
daemontools (Ubuntu)
Medium
Unassigned
Nominated for Intrepid by David Phillips
Nominated for Jaunty by Andreas Moog
Nominated for Karmic by Luke Faraone

Bug Description

Binary package hint: daemontools-run

SRU-JUSTIFICATION:

With the original jaunty-packages, daemontools will fail to install as the postinst-script still relies on /etc/inittab to be there. As we use Upstart in Ubuntu, the script fails:

# dpkg -i daemontools-run_0.76-3_all.deb
[...]
Adding SV inittab entry...
cp: cannot stat `/etc/inittab': No such file or directory

dpkg: error processing daemontools-run (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 daemontools-run

All users will encounter this problem, making this package effectively unusable.

SRU-TESTCASE:

Install daemontools-run from the repositories. It will fail (see above).
Now install daemontools-run from ppa https://edge.launchpad.net/~amoog/+archive/amoog-devel .
This will install the program and register it with upstart.

SRU-REGRESSION-POTENTIAL:

Non-existent, it does not work now, what worse can it get? ;-)

Related branches

Cory Wright (corywright) wrote :
Changed in daemontools:
status: New → Confirmed
Myoukochou (myoukochou) wrote :

Change the /command/svscanboot in boot.eventd to /usr/bin/svscanboot.

For 8.10 final they've not gone with djb's unorthodox directory structure, but instead they've put the binaries under /usr/bin — the /service directory is under /etc/service but is NOT made by the package yet, so svc -u (or ln -s) to there when you want to start something.

vitaminmoo (vitaminmoo) wrote :

The test line in run.eventd needs to use "test -f", not "test -d".

Changed in daemontools:
importance: Undecided → Medium
status: Confirmed → Triaged
Eric Williams (wd6cmu) wrote :

Can someone who has applied this patch please post details of the procedure? I can't figure out where boot.eventd and run.eventd are supposed to go. Thanks!

Claudia (claudia-sol-es) wrote :

Es una pena que sólo se escriba en ingles... :-(

Speak spanish..?

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.

sharkito (alvaro-diaz) wrote :

Si verdad.. =)

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.

sharkito (alvaro-diaz) wrote :

Siverdad..!!! =)

--
Este mensaje ha sido analizado por MailScanner
en busca de virus y otros contenidos peligrosos,
y se considera que está limpio.
MailScanner agradece a transtec Computers por su apoyo.

I'm extremely confused by this thread.

First question, is this bug fixed?

Secondly, if so, how do you apply this patch???

I'm new to Linux, and I'm just not able to get anywhere from your previous comments and this bug is stalling me.

FK

Andreas Moog (ampelbein) on 2009-03-28
Changed in daemontools (Ubuntu):
milestone: none → ubuntu-9.04
Jamin W. Collins (jcollins) wrote :

This bug is still present in 9.04.

Selecting previously deselected package daemontools-run.
(Reading database ... 130464 files and directories currently installed.)
Unpacking daemontools-run (from .../daemontools-run_1%3a0.76-3_all.deb) ...
Processing triggers for man-db ...
Setting up daemontools-run (1:0.76-3) ...
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
Adding SV inittab entry...
cp: cannot stat `/etc/inittab': No such file or directory
dpkg: error processing daemontools-run (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 daemontools-run
E: Sub-process /usr/bin/dpkg returned an error code (1)

Changed in daemontools (Ubuntu):
status: Triaged → Confirmed
Andreas Moog (ampelbein) wrote :

debdiff attached:

daemontools (1:0.76-3ubuntu1) jaunty; urgency=low

  * debian/control
    - updated description of daemontools-run
  * debian/daemontools-run.*
    - updated to use upstart (LP: #253465)
  * debian/rules
    - install svscan-file to /etc/event.d
  * debian/svscan
    - service-file for upstart

 -- Andreas Moog <email address hidden> Mon, 27 Apr 2009 03:23:53 +0200

Andreas Moog (ampelbein) wrote :

attaching debdiff with -proposed as distribution.

Changed in daemontools (Ubuntu):
milestone: ubuntu-9.04 → jaunty-updates
Andreas Moog (ampelbein) wrote :

I have added a package containing the changes to my ppa, can you try and give feedback here? Thanks. Url: https://edge.launchpad.net/~amoog/+archive/ppa

Jamin W. Collins (jcollins) wrote :

I rebuilt from the sources last night using the debdiff and it appears to install fine. Haven't actually tried using it yet as I moved the daemon I was considering running in it into upstart already.

Andreas Moog (ampelbein) on 2009-04-27
summary: - daemontools-run needs to work with upstart
+ [SRU] daemontools-run needs to work with upstart
Andreas Moog (ampelbein) on 2009-04-27
description: updated
Ken Sharp (kennybobs) wrote :

https://edge.launchpad.net/~amoog/+archive/ppa

Works as a workaround.

How hard can it be to fix this? It doesn't work, just change the damned package.

m3onh0x84 (quylaokame) on 2009-05-06
tags: added: install jnms

I installed daemontools_0.76-3ubuntu1~ppa1_amd64.deb, looks good, no more error messages appearing when installing packages.

thanks so much, because I upgrade to ubuntu 9.10 so soon. And install so
much many security application not carefully (I use synaptic install)

Level15 (ejortegau) wrote :

Hi:

Any chance this makes it to the official repos?

Thanks,

E.

On Sat, May 9, 2009 at 5:27 AM, m3onh0x84 <email address hidden> wrote:
> thanks so much, because I upgrade to ubuntu 9.10 so soon. And install so
> much many security application not carefully (I use synaptic install)
>
> --
> [SRU] daemontools-run needs to work with upstart
> https://bugs.launchpad.net/bugs/253465
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “daemontools” source package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: daemontools-run
>
> SRU-JUSTIFICATION:
>
> With the original jaunty-packages, daemontools will fail to install as the postinst-script still relies on /etc/inittab to be there. As we use Upstart in Ubuntu, the script fails:
>
> # dpkg -i daemontools-run_0.76-3_all.deb
> [...]
> Adding SV inittab entry...
> cp: cannot stat `/etc/inittab': No such file or directory
>
> dpkg: error processing daemontools-run (--install):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  daemontools-run
>
> All users will encounter this problem, making this package effectively unusable.
>
> SRU-TESTCASE:
>
> Install daemontools-run from the repositories. It will fail (see above).
> Now install daemontools-run from ppa https://edge.launchpad.net/~amoog/+archive/amoog-devel .
> This will install the program and register it with upstart.
>
> SRU-REGRESSION-POTENTIAL:
>
> Non-existent, it does not work now, what worse can it get? ;-)
>
>

--
Eduardo J. Ortega U.

Naresh V (nareshov) wrote :

daemontools 1:0.76-3ubuntu1~ppa1 and
daemontools-run 1:0.76-3ubuntu1~ppa1 installed fine - unlike the ubuntu's daemontools-run package which crapped out.

Level15 (ejortegau) wrote :

Any chance this is going into official repositories?

On Tue, Jul 14, 2009 at 7:37 AM, Naresh V<email address hidden> wrote:
> daemontools 1:0.76-3ubuntu1~ppa1 and
> daemontools-run 1:0.76-3ubuntu1~ppa1 installed fine - unlike the ubuntu's daemontools-run package which crapped out.
>
> --
> [SRU] daemontools-run needs to work with upstart
> https://bugs.launchpad.net/bugs/253465
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in “daemontools” package in Ubuntu: Confirmed
>
> Bug description:
> Binary package hint: daemontools-run
>
> SRU-JUSTIFICATION:
>
> With the original jaunty-packages, daemontools will fail to install as the postinst-script still relies on /etc/inittab to be there. As we use Upstart in Ubuntu, the script fails:
>
> # dpkg -i daemontools-run_0.76-3_all.deb
> [...]
> Adding SV inittab entry...
> cp: cannot stat `/etc/inittab': No such file or directory
>
> dpkg: error processing daemontools-run (--install):
>  subprocess post-installation script returned error exit status 1
> Errors were encountered while processing:
>  daemontools-run
>
> All users will encounter this problem, making this package effectively unusable.
>
> SRU-TESTCASE:
>
> Install daemontools-run from the repositories. It will fail (see above).
> Now install daemontools-run from ppa https://edge.launchpad.net/~amoog/+archive/amoog-devel .
> This will install the program and register it with upstart.
>
> SRU-REGRESSION-POTENTIAL:
>
> Non-existent, it does not work now, what worse can it get? ;-)
>
>

--
Eduardo J. Ortega U.

tags: added: verification-done
Eduardo Romero (foxteck) wrote :

As of 09/17/2009 this is still an issue. Brand new Ubuntu 9.04 Server:

Setting up daemontools-run (1:0.76-3) ...
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
grep: /etc/inittab: No such file or directory
Adding SV inittab entry...
cp: cannot stat `/etc/inittab': No such file or directory
dpkg: error processing daemontools-run (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 daemontools-run
E: Sub-process /usr/bin/dpkg returned an error code (1)

Scott Kitterman (kitterman) wrote :

Packages have to be fixed in the development release first. I'm just uploaded this fix to Karmic.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package daemontools - 1:0.76-3ubuntu1

---------------
daemontools (1:0.76-3ubuntu1) karmic; urgency=low

  * debian/control
    - updated description of daemontools-run
  * debian/daemontools-run.*
    - updated to use upstart (LP: #253465)
  * debian/rules
    - install svscan-file to /etc/event.d
  * debian/svscan
    - service-file for upstart

 -- Andreas Moog <email address hidden> Mon, 27 Apr 2009 03:23:53 +0200

Changed in daemontools (Ubuntu):
status: Confirmed → Fix Released

Still an issue on Ubuntu server 9.04.

Any solutions/fixes ?

Lasse Larsen (lasselarsendk) wrote :

No.
Has upgraded to 10.04! - That works perfect.
Thanks.
Lasse

2010/5/25 Vincent Jauneau
<<email address hidden><vjauneau%<email address hidden>>
>

> Still an issue on Ubuntu server 9.04.
>
> Any solutions/fixes ?
>
> --
> [SRU] daemontools-run needs to work with upstart
> https://bugs.launchpad.net/bugs/253465
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>

Hauke Lampe (hauke) wrote :

On 05/25/2010 07:21 PM, Vincent Jauneau wrote:

> Still an issue on Ubuntu server 9.04.
> Any solutions/fixes ?

Get the source package for 9.10 and recompile it. Worked for me.

Or use the binary package from my PPA:

daemontools - 1:0.76-4~ppa1~jaunty1 in
https://launchpad.net/~hauke/+archive/dnscurve/+packages

Hauke.

Kim Tyler (ktyler) wrote :

Not a problem for me. In any case, I'm now with lucid on everything.

Thanks

On 26/05/10 03:21, Vincent Jauneau wrote:
> Still an issue on Ubuntu server 9.04.
>
> Any solutions/fixes ?
>
>

To post a comment you must log in.