Your message dated Sat, 17 Dec 2016 14:22:16 +0100
with message-id <[email protected]>
and subject line Re: Bug#789690: atop process ends up in cron.service's cgroup
has caused the Debian Bug report #789690,
regarding atop process ends up in cron.service's cgroup
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
789690: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=789690
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: atop
Version: 1.26-2
Severity: normal

I guess this is due to logrotate running 'invoke-rc.d atop _cron'.

    $ systemctl status atop cron
    ● atop.service - LSB: Monitor for system resources and process activity
       Loaded: loaded (/etc/init.d/atop)
       Active: active (exited) since Wed 2015-05-27 23:23:47 BST; 3 weeks 5 
days ago

    May 27 23:23:46 traxus systemd[1]: Starting LSB: Monitor for system 
resources and process activity...
    May 27 23:23:47 traxus systemd[1]: Started LSB: Monitor for system 
resources and process activity.

    ● cron.service - Regular background program processing daemon
       Loaded: loaded (/lib/systemd/system/cron.service; enabled)
       Active: active (running) since Wed 2015-05-27 23:23:46 BST; 3 weeks 5 
days ago
         Docs: man:cron(8)
     Main PID: 264 (cron)
       CGroup: /system.slice/cron.service
               ├─ 264 /usr/sbin/cron -f -L 15
               └─5277 /usr/bin/atop -a -w /var/log/atop/atop_20150623 600

The atop unit stays 'active' even though the process has exited (this will
probably always happen while a sysvinit script is used rather than a systemd
unit).

But more annoyingly, restarting cron results in atop being killed!

I don't see why it's necessary to couple the cleanup of old log files to the
startup of the service. It would seem simpler to have two cron jobs; one job to
restart the service (via the regular 'start' verb so that
/lib/lsb/init-functions.d/40-systemd is able to do its job, hence fixing
this bug) and the second job to delete the old log files.

-- System Information:
Debian Release: 8.1
  APT prefers stable-updates
  APT policy: (550, 'stable-updates'), (550, 'stable'), (520, 'unstable'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages atop depends on:
ii  libc6        2.19-18
ii  libncurses5  5.9+20140913-1+b1
ii  libtinfo5    5.9+20140913-1+b1
ii  lsb-base     4.1+Debian13+nmu1
ii  zlib1g       1:1.2.8.dfsg-2+b1

Versions of packages atop recommends:
ii  cron  3.0pl1-127

atop suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 2.2.4-1~exp1

Closing this now with a friendly reminder to open a new bug report
about the timer issue.

On Tue, Oct 04, 2016 at 08:26:53PM +0100, Sam Morris wrote:
> Hi Marc, I'm not able to try this on a system running jessie right now
> but having looked at the changes in the package I'm sure that the bug
> will be fixed by the systemd units included in that version--thanks!

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany    |  lose things."    Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

--- End Message ---

Reply via email to