taskd.pl: support a --daemon option
commit9e8599d63f4a120a15b4c1ffe31753ed423b5345
authorKyle J. McKay <mackyle@gmail.com>
Sat, 3 Dec 2016 05:00:43 +0000 (2 21:00 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Sat, 3 Dec 2016 05:00:43 +0000 (2 21:00 -0800)
tree9d7725a7ebe56589326891a8f78f44d1dcbac883
parentc77bede8cb36dc27535ec53a56ee3fc572adc907
taskd.pl: support a --daemon option

With the --daemon option fork and become a background daemon.

Implies --syslog and --quiet.

Also allow a --no-same-pid option (the opposite of --same-pid)
and now default --same-pid to on whenever --daemon is NOT used.

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