I'm making a simple upstart daemon.
Following the Upstart documentation I make the conf script:
description "Super Daemon" author "Bastian Baltasar Bux" start on started dbus stop on runlevel  expect fork exec /usr/bin/my-daemon
/usr/bin/my-daemon is a bash that call a python. The python script log information in a /var/log file. On that python script, I only make a
fork. But when I check the forks like says in the Upstart doc , the method says that I do twice forks.
With that all, the start job is executed correctly, but the pid showed with the
upstart my-daemon status isn't the same that is in the log file. The error appears when I try to stop doing
status my-daemon stop. That command doesn't end, I must to finish with Crtl-C.
I tried to change the
expect fork to
expect daemon but service stop doesn't ends neither.
When could be the problem?