How to send signal to process?

Scott James Remnant scott at netsplit.com
Fri Jul 17 15:25:06 BST 2009


On Fri, 2009-07-17 at 16:06 +0200, Enrico Scholz wrote:

> 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.
> 
Could you file a wishlist bug for that?

Scott
-- 
Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20090717/ea553973/attachment.pgp 


More information about the upstart-devel mailing list