How to send signal to process?
Enrico Scholz
enrico.scholz at sigma-chemnitz.de
Fri Jul 17 15:06:46 BST 2009
Scott James Remnant <scott at netsplit.com> writes:
>> is there a way to send a specific signal to a process started by a
>> job? E.g. something like
>>
>> initctl kill -USR2 my-job
>>
> Not directly like this, however "initctl status my-job" will tell you
> the pid.
Yes; I saw this and use it as a workaround atm. But:
a) it requires parsing of human readable text
b) there is a race between 'initctl status' and the 'kill' where service
might vanish and a completely different process is started with the
same pid
Hence, an atomic 'initctl kill' functionality would be nice.
Enrico
More information about the upstart-devel
mailing list