Package: debian-goodies Version: 0.61 Severity: wishlist File: /usr/sbin/checkrestart X-Debbugs-CC: [email protected]
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. pabs@chianamo ~ $ cat /proc/30519/cgroup 8:perf_event:/ 7:blkio:/ 6:net_cls:/ 5:freezer:/ 4:devices:/ 3:cpuacct,cpu:/system/exim4.service 2:cpuset:/ 1:name=systemd:/system/exim4.service systemd as pid 1 has the below cgroup file and can be restarted using `systemctl daemon-reexec` instead of the normal pabs@chianamo ~ $ cat /proc/1/cgroup 8:perf_event:/ 7:blkio:/ 6:net_cls:/ 5:freezer:/ 4:devices:/ 3:cpuacct,cpu:/ 2:cpuset:/ 1:name=systemd:/system User processes not belonging to any systemd defined service look like this: pabs@chianamo ~ $ cat /proc/11487/cgroup 8:perf_event:/ 7:blkio:/ 6:net_cls:/ 5:freezer:/ 4:devices:/ 3:cpuacct,cpu:/ 2:cpuset:/ 1:name=systemd:/user/pabs/c1 -- System Information: Debian Release: wheezy/sid APT prefers testing APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.4-trunk-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages debian-goodies depends on: ii curl 7.26.0-1 ii dctrl-tools [grep-dctrl] 2.22.2 ii perl 5.14.2-11 ii python 2.7.3~rc2-1 ii whiptail 0.52.14-10 Versions of packages debian-goodies recommends: ii lsof 4.86+dfsg-1 Versions of packages debian-goodies suggests: ii popularity-contest 1.55 ii xdg-utils 1.1.0~rc1+git20111210-6 ii zenity 3.4.0-2 -- bye, pabs http://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part

