Re: Python script under daemontools does not get signal 15
"Raj [mail list]" <[email protected]> Mon, 3 Feb 2014 11:38:55 +0530
| Newsgroups | gmane.comp.djb.syslog |
|---|---|
| Message-ID | <CAE56t+Xu8kVApgv-Zx+c1SjWuOBiCrKRgsVoCXL5=T=94kV8aw@mail.gmail.com> |
On Mon, Feb 3, 2014 at 11:33 AM, Andy Bradford <[email protected]> wrote: > Thus said "Raj [mail list]" on Mon, 03 Feb 2014 10:49:28 +0530: > >> I am using following run script to run the program under daemontools >> >> #!/bin/sh >> exec 2>&1 >> /usr/bin/python /home/test/sigtest.py > > Your python script doesn't get the signal because it isn't going to the > python script, it's going to your run script. You need to do: > > #!/bin/sh > exec 2>&1 > exec /usr/bin/python /home/test/sigtest.py Thanks, I will change run script and try. Thanks and Regards, Raj