On Thu, Jun 21, 2012 at 03:40:42PM +0800, Paul Wise wrote: > Package: debian-goodies > Version: 0.61 > Severity: wishlist > File: /usr/sbin/checkrestart > X-Debbugs-CC: syst...@packages.debian.org > > systemd (the alternative to sysvinit) uses Linux cgroups to group > processes according to the service they belong to, even if the services > spawns child processes and so on. Please detect if cgroups are > available, if the systemd cgroups are active and for the processes that > need restarting, which systemd service they belong to. Some information > about the cgroups used by systemd is below. If systemd cgroups are > active then the initscripts mechanism should not be used. > > Normal services have the a cgroup file like this and can be restarted > using `systemctl restart exim4.service` or similar.
Hi Paul, I've just have added preliminary support for systemd in checkrestart and committed it to GIT. Instead of using cgroups I have just modified checkrestart to point to users to running 'systemctl restart' + service file, if a process belongs to a package and that package provides systemd service files (instead of suggesting using 'service ' + init.d file) Adding cgroups requires some more extensive changes in the code, handling different exceptions. We will consider this for the next iteraction. If you have time and can provide a patch to add support for cgroups that would be great though :) Best regards Javier
signature.asc
Description: Digital signature