Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

#!/bin/sh
set -e
. /usr/share/debconf/confmodule
[...]
case "$1" in
   configure)
    [...]
    ldconfig
    echo "Install concluded"
    echo "Starting service"
    service lttng-sessiond restart
    echo "Postinst complete"
   ;;
   [...]
esac
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 stackoverflow.com/questions/19716481/… –  Urhixidur Nov 1 '13 at 12:41
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.