Ubuntu is replacing more and more things with Upstart...

Michael Shadle mike503 at gmail.com
Mon May 24 01:56:32 BST 2010


So I was trying to replace my nginx and php-fpm init scripts with an
upstart script.

I've made ones simple enough - start/stop, etc.

However, what's the strategy for sending different signals to
processes, or log rotation, or graceful reloading? Is there one?

nginx and php-fpm both use signals (USR1, USR2, etc.) to tell the
master processes to gracefully reload, or reopen log files (i.e. what
would be in logrotate.d)

Making additional wrapper scripts or something that pass the right
flags to $foo.pid might work; but that seems like more cruft when
Upstart seems like it is supposed to reduce cruft.

Thoughts?



More information about the upstart-devel mailing list