'kill 0' from cron script kills crond
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Tue Dec 2 17:22:13 UTC 2008
On Tue, Dec 02, 2008 at 05:40:06PM +0100, Jeroen van der Vegt wrote:
>Hello,
>
>
>We're using Busybox on an embedded ARM platform. We'd like to have a script
>running from cron every minute. To terminate any remaining child processes,
>we'd like to perform the 'kill 0' command at the end of the script. This '0'
>is a special argument. From e.g.
>http://linux.about.com/od/commands/l/blcmdl1_kill.htm :
Just as a sidenote, the relevant documentation is
http://www.opengroup.org/onlinepubs/009695399/utilities/kill.html
and
http://www.opengroup.org/onlinepubs/009695399/functions/kill.html
and perhaps the _current_ manpage of kill(1) (util-linux-ng or procps
or the like).
PS: pidof -o %PPID would ommit your parent's pid
More information about the busybox
mailing list