Package: anacron
Version: 2.3-19
Severity: wishlist

Hi,

The anacron manpage suggests that the SIGUSR1 signal can gracefully kill
anacron (by waiting for the completion of the jobs) rather than plain
killing it.

What do you think about adding something like

--retry=SIGUSR1/10/KILL/5 (or maybe even SIGUSR1/10/TERM/5/KILL/5)

to start-stop-daemon to ensure the jobs are properly finished?

For systemd serivice something like:

KillMode=process
KillSignal=SIGUSR1

Should do the trick. This is actally important for systemd as if anacron
exits, the complete cgroup will be killed, so we let the chance to the
jobs to properly finish.

Cheers,

Laurent Bigonville

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.11-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_BE.utf8, LC_CTYPE=fr_BE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages anacron depends on:
ii  debianutils  4.4
ii  libc6        2.17-96
ii  lsb-base     4.1+Debian12

Versions of packages anacron recommends:
ii  cron                         3.0pl1-124
ii  rsyslog [system-log-daemon]  7.4.4-1

Versions of packages anacron suggests:
ii  dma [mail-transport-agent]  0.9-1
ii  powermgmt-base              1.31

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to