Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have this package with a postinst script that launches a service as its last step. Something like:

set -e
. /usr/share/debconf/confmodule
case "$1" in
    echo "Install concluded"
    echo "Starting service"
    service lttng-sessiond restart
    echo "Postinst complete"
exit 0

When I run 'sudo apt-get install packagename', I get this piece of log:

Starting service
stop: Unknown instance:
lttng-sessiond start/running, process 22914
Postinst complete
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

The "stop: Unknown instance:" is due to my using 'restart' instead of 'start', no big deal. The important thing is that the service does start, as the log shows. But the System Monitor reveals the service dies almost instantaneously (it's not a problem with the service itself, since issuing the service start command anew from the command line works just fine).

I'm grasping at straws at this point: could it be the "libc-bin triggers" or the "ldconfig deferred processing" that is shutting the service down?

share|improve this question
I've resurrected this as… – Urhixidur Nov 1 '13 at 12:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.