]] Ritesh Raj Sarraf > From what I have investigated so far, it looks like systemd prefers to > create a cgroup for each service and keep all its associated processes > together. > This seems to create problems for LMT. It's polling script does not seem > to be getting detached from the parent calling process.
cgroups are just a way of grouping processes. It does not affect backgrounding, etc. [...] > CGroup: name=systemd:/system/laptop-mode.service > ├ 14176 /bin/sh /usr/sbin/laptop_mode auto > ├ 14197 /bin/sh > /usr/share/laptop-mode-tools/module-helpers/lm-polling-daemon > └ 15964 sleep 150 > > Ideally, pid 14197 should have been backgrounded, and pid 14176 should > have clean exited, leaving pid 14197 to loop. It does not allow that. [...] > rrs@champaran:/run/lock$ cat /lib/systemd/system/laptop-mode.service > [Unit] > Description=Laptop Mode Tools > > [Service] > Type=simple I suspect you want type=forking here? > ExecStartPre=/usr/bin/install -d /var/run/laptop-mode-tools ; > /usr/bin/touch /var/run/laptop-mode-tools/enabled You should rather do this using tmpfiles.d than with an execstart.d -- Tollef Fog Heen UNIX is user friendly, it's just picky about who its friends are -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

