NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
misc/60009: /etc/daily: overlong run protection
>Number: 60009
>Category: misc
>Synopsis: /etc/daily: overlong run protection
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: misc-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 16 02:10:00 +0000 2026
>Originator: Taylor R Campbell
>Release: current, 11, 10, 9, ...
>Organization:
The NetBSDaily Collision, Inc.
>Environment:
>Description:
If /etc/daily takes longer than a day to run, the same cron job
might start running again the next day. If something is
hanging, there may be indefinite growth of hung /etc/daily jobs
without feedback.
Same with /etc/weekly, /etc/monthly.
>How-To-Repeat:
echo sleep $((86400*365)) >>/etc/daily.local
>Fix:
Take a lock, say /var/run/daily.lock, with flock(1). If it's
already taken, report a hung daily job by mail instead of
hanging any more.
Home |
Main Index |
Thread Index |
Old Index