Comment 19 for bug 854490

Revision history for this message
Steve Langasek (vorlon) wrote :

Attached is a cups upstart job that avoids the need for polling in the post-start script by using 'expect daemon', which is how this *should* work. However, there seem to be a pair of bugs preventing this from working as designed. First, upstart does not wait until cups is daemonized before considering the main process started; this may have to do with the fact that cups re-execs itself with different arguments (strange?). Second, even though cupsd immediately dies with a symbol error, upstart marks the job as "running" with no PID.

We still need to fix the libcups2/cups package relationships regardless, and we should probably just leave the cups upstart job alone for now. I'll raise bugs on upstart for the discovered issues.