Handle SIGINT in upstart

Chris Packham judge.packham at gmail.com
Fri Jul 9 22:30:57 BST 2010


On 09/07/10 14:15, Nirmal Guhan wrote:
> Hi,
> 
> Any help on this will be much appreciated!!
> 
> thanks,
> --Nirmal
> 
> On Thu, Jul 8, 2010 at 12:31 AM, Nirmal Guhan <vavatutu at gmail.com> wrote:
>> How do I configure upstart to handle SIGINT as a
>> shutdown signal ? This is needed as that is the method by which
>> vserver ... stop will
>> shutdown a plain init guest.
>>
>> --Nirmal
>>
> 

Have a look at http://upstart.ubuntu.com/wiki/Stanzas in particular the
"normal exit" section. I think what you want to do is add the following
to your script:

  normal exit 0 INT



More information about the upstart-devel mailing list