I am attempting to daemonize a
paster process which launches
celeryd is a paster script that only exists within the python virtual environment.
I have no problem with
paster serve, as that can daemonize itself.
celeryd does not have this ability coded (as the developer has not included it) and it is recommended to use an init script that had been contributed to the project. However, I am unsure how to integrate the need for the virtual environment and
paster into this script.
How do I have a
paster celeryd process daemonize itself?
I eventually simply opted to drop the process to the background using
&. I'm working out the command syntax for handling this in an init script. You must send a SIGINT signal (try
kill -SIGINT $(cat /var/run/celeryd.pid)) to the paste process for it to perform the warm shutdown (properly shutting down the celeryd instance that is spawned by marcin's paste script celeryd (yes, it's a bit confusing).