taskd.pl: support taskd.restart
commit3140fdaafd8693d6f6ed1f26701a5b899113cbf2
authorKyle J. McKay <mackyle@gmail.com>
Sun, 27 Nov 2016 06:29:17 +0000 (26 22:29 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 27 Nov 2016 06:29:17 +0000 (26 22:29 -0800)
treea647de8f26f1ea7e243041210b8f0293cd9db6a3
parentb3c27f46413e183e84304905e0bfb7a002d3d1fe
taskd.pl: support taskd.restart

If the file taskd.restart is created in the same directory as
the taskd.socket file, then gracefully restart taskd the next
time it becomes idle.

If running in --inetd mode then simply exit instead.

This mechanism allows the install update process to request
a taskd.pl restart after installing a new version by simply
touching the taskd.restart file.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
taskd/taskd.pl