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?