Hi,

On Wed, Aug 13, 2014 at 03:29:40PM +0200, Lennart Poettering wrote:
> On Mon, 11.08.14 13:22, Leonid Isaev ([email protected]) wrote:
> 
> > Hi,
> > 
> >     I am seeing an oddity in the CGroup output of systemctl status ran on
> > some units. On the other hand, systemd-cgls shows correct information.
> >     Here is an example:
> > ------
> > $ systemctl status [email protected]
> >   [email protected] - DHCP connection on bond0
> >    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
> >    Active: active (exited) since Mon 2014-08-11 11:51:05 EDT; 1h 20min ago
> >      Docs: man:netctl.profile(5)
> >   Process: 645 ExecStart=/usr/lib/network/network start %I (code=exited, 
> > status=0/SUCCESS)
> >  Main PID: 645 (code=exited, status=0/SUCCESS)
> > 
> > $ systemctl status [email protected] 
> >   [email protected] - Secure wireless uplink
> >    Loaded: loaded (/etc/systemd/system/[email protected]; enabled)
> >    Active: active (exited) since Mon 2014-08-11 11:50:58 EDT; 1h 16min ago
> >      Docs: man:netctl.profile(5)
> >   Process: 489 ExecStart=/usr/lib/network/network start %I (code=exited, 
> > status=0/SUCCESS)
> >  Main PID: 489 (code=exited, status=0/SUCCESS)
> >    CGroup: /system.slice/system-netctl.slice/[email protected]
> >            501 wpa_supplicant -B -P /run/wpa_supplicant_wlp3s0.pid -i
> >   wlp3s..
> 
> When you use "systemctl -p ControlGroup show" on the two services, do
> they both show valid cgroup paths?

No.
------
$ systemctl show [email protected] | grep -i controlgroup
ControlGroup=/system.slice/system-netctl.slice/[email protected]
$ systemctl show [email protected] | grep -i controlgroup
<nothing>
------

> 
> What's the Type= of the units?

[email protected] is Type=oneshot:
------
$ cat /usr/lib/systemd/system/[email protected] 
[Unit]
Description=Networking for netctl profile %I
Documentation=man:netctl.profile(5)
Before=network.target netctl.service
Wants=network.target

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/lib/network/network start %I
ExecStop=/usr/lib/network/network stop %I
KillMode=none
------

Thanks,
-- 
Leonid Isaev
GPG fingerprints: DA92 034D B4A8 EC51 7EA6  20DF 9291 EE8A 043C B8C4
                  C0DF 20D0 C075 C3F1 E1BE  775A A7AE F6CB 164B 5A6D

Attachment: pgpvtoZE_fN18.pgp
Description: PGP signature

_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to