Your message dated Mon, 11 Jan 2016 05:26:57 +0000
with message-id <[email protected]>
and subject line Bug#808289: Removed package(s) from unstable
has caused the Debian Bug report #733287,
regarding interaction of expect and script underdocumented
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
733287: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=733287
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: upstart
Version: upstart/1.10-2
Severity: minor

While attempting to support an /etc/default file for backward
compatibility, I struggled with finding the right way to import
the environment settings into the upstart job and use them
appropriately.  I'm not sure if there's a piece of documentation
on how to handle this that I missed.  I finally arrived at:

expect stop
script
    if [ -f /etc/default/lbcd ] ; then
        . /etc/default/lbcd
    fi
    /usr/sbin/lbcd -f -l -Z $DAEMON_OPTS
end script

but, as I'm sure you know, this is subtlely wrong and will cause
initctl to just hang.

The correct incantation is:

expect stop
script
    if [ -f /etc/default/lbcd ] ; then
        . /etc/default/lbcd
    fi
    exec /usr/sbin/lbcd -f -l -Z $DAEMON_OPTS
end script

The example of script in the init(5) man page is correct, but
I don't believe the requirement to use exec is explicitly
mentioned.  It would be good to stress this, since it's not
immediately obvious that the use of a script will cause upstart
to lose track of the started process otherwise.  (In retrospect,
it's obvious what the underlying implementation must look like,
but I don't think everyone will figure this out.)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

--- End Message ---
--- Begin Message ---
Version: 1.11-5+rm

Dear submitter,

as the package upstart has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/808289

The version of this package that was in Debian prior to this removal
can still be found using http://snapshot.debian.org/.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
[email protected].

Debian distribution maintenance software
pp.
Scott Kitterman (the ftpmaster behind the curtain)

--- End Message ---

Reply via email to