jobd.pl: touch ctime of lockfile on each run
commit74bdaf5585764ab6d058cd5561c8e9d428f4e14d
authorKyle J. McKay <mackyle@gmail.com>
Fri, 15 Apr 2016 00:13:20 +0000 (14 17:13 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 15 Apr 2016 00:13:20 +0000 (14 17:13 -0700)
tree75448a2b4b75e79b80e75f692c04222051beaf11
parentc1df4b92ec14995e2ae1a72200ec90526d1c2e4b
jobd.pl: touch ctime of lockfile on each run

The default location of the lock file is in /tmp.  Some systems
periodically clean /tmp of old files (i.e. files that have not
been accessed, modified or status changed) periodically.

We do not want the lock file to be removed, so touch the ctime
to prevent this.  The mtime will continue to reflect the time
jobd was started while the ctime will reflect the beginning of
the most recent run.

We do not bother with atime since on some systems changes to
atime may be completely ignored.

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