-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Package: anacron Version: 2.3-20 Severity: normal Tags: patch
I now have anacron maintain btrfs volume scrubbing, which blocks all other jobs when it runs. I use anacron precisely because it should run the jobs it manages in parallel (theres cron.daily/weekly/monthly via run-parts for serial jobs) - reading the manpage confirms this intent: ======================================================================= Unless the -s or -n options are given, Anacron starts jobs immediately when their delay is over. The execution of different jobs is completely independent ======================================================================= Debian's '/etc/init.d/anacron' script indeed hobbles this by calling anacron with '-s'. I have attached a patch to allow anacron's arguments to be user-customisable in the '/etc/default/anacron' file - the patch keeps the current configuration. Thanks - --- System information. --- Architecture: amd64 Kernel: Linux 3.13-1-amd64 Debian Release: jessie/sid 990 testing security.debian.org 990 testing ftp.uk.debian.org 500 unstable ftp.uk.debian.org 500 stable ftp.uk.debian.org 500 quodlibet-unstable www.student.tugraz.at 1 experimental ftp.uk.debian.org - --- Package information. --- Depends (Version) | Installed ===================================-+-============ libc6 (>= 2.7) | debianutils (>= 1.7) | init-system-helpers (>= 1.13~) | lsb-base (>= 3.0-10) | Recommends (Version) | Installed ====================================-+-=============== cron (>= 3.0pl1-43) | 3.0pl1-124 rsyslog | 7.4.8-1 OR system-log-daemon | Suggests (Version) | Installed ===================================-+-=========== default-mta | OR mail-transport-agent | powermgmt-base | 1.31 - -- Libre software on Github: https://github.com/OmegaPhil FSF member #9442 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iQIcBAEBAgAGBQJTPGsPAAoJEBfSPH39wvOPXNIP/1c9gBZZEubTMG9DbrtUyp0O QeagyHB0gJRzhQpfZNS3LPj5R2+sVH6TNY2ihiuHOC2huDSKzKLoVS/EFHBIHw9S ka3oFUHgNGpAO0J130Vrr7LUe0nG7iWLFsIWw2OuZRIjk6bFf4uCTt7uCVh0olFf TjP+uBbqE1mC1Q9A7sXyed3dt50lWODSwGY9nE7no5zFolXDvtJg/gdw1ObacsfN MdPk1MJvLHmxGdNjN1oh0j2o00WIXfpzcnDy7pSBkjnsinR+9vE6H/A4G1QK3riY PqDYdCg4jaLJLgFM40jw9NKMY5iXJRbPgHbYA8Wq+Rgnlg6oSJfe1ZvaS3OMGAF1 Ws2e9z7cP42/MHUUk1RQv1lXHPQl846Xd4YRbYYke5Q9JPm7Pn9n3IY+eQG/KIBx 1DMGrTwcjqyAKerM9U/RSw61bHixp3+i5VKQ6VpqQtno+bR43a+HLXxv8Pdwfoa1 1MUd9FvNx/QbUfTNYMnhWO/DP3n9kHvsVmVKiLwYVJUV0AgfcrmHBDrVPrGpx7Ra Vr0K4D3njstiBXGZSv3EEno+o7YcfCluPr6ni7Kzy+UGbr9LjA1xFDySVLt00LDG ANAbs5AV+SrQV44S3H1752sSrBHp+E0OApErVCc6N3gkXeuRRVeNb8AvHcAlc+rt Dxd5LvY/c3VCfeC01JiC =qkMI -----END PGP SIGNATURE-----
--- a/debian/default +++ b/debian/default @@ -4,3 +4,7 @@ # (Things like the locate updatedb cause a lot of I/O.) ANACRON_RUN_ON_BATTERY_POWER=no + +# Arguments/options to pass to anacron. If you want tasks to execute +# in parallel when they are due to start, do not pass '-s' +ANACRON_ARGS="-s" --- a/debian/init.d +++ b/debian/init.d @@ -41,7 +41,7 @@ # on_ac_power doesn't exist, on_ac_power returns 0 (ac power being used) # or on_ac_power returns 255 (undefined, desktop machine without APM) - start-stop-daemon --start --exec /usr/sbin/anacron -- -s + start-stop-daemon --start --exec /usr/sbin/anacron -- $ANACRON_ARGS log_end_msg 0 ;; restart|force-reload|reload)
customisable-serialisation.diff.sig
Description: PGP signature