On Sun, 2015-09-27 at 18:04 +0200, Tomas Janousek wrote:
> 
> I'm not sure if it kills forked children of processes invoked via
> ExecStart in
> a one-shot service (although I rather suspect it does), but it
> certainly does
> for things in /lib/systemd/system-sleep/.
> 

Okay!! You got me worried.

So I went and added some custom commands into exec-modules to see if
systemd was killing it ever.

BATT_EXEC_COMMAND_0="echo $PPID `date` LMT_ON_BATT_RUNNING > /tmp/lmt
-batt.run"
LM_AC_EXEC_COMMAND_0="echo $PPID `date` LMT_ON_AC_RUNNING > /tmp/lmt
-ac.run"

rrs@learner:~/devel/Laptop-Mode-Tools/laptop-mode-tools (lmt-upstream)$
cat /tmp/lmt-batt.run 
1 Sun Sep 27 21:50:47 IST 2015 LMT_ON_BATT_RUNNING
2015-09-27 / 21:52:18 ♒♒♒  ☺    


So, for now, it looks good. I'll keep an eye on it. And this is without
the re-introduction of the "wait" command.


> For some reason I replaced "systemctl restart laptop-mode" with
> direct
> invocation of "laptop_mode auto force". I think it was not behaving
> well, but
> can't remember. :-( 
> I'll try to put systemctl restart there instead and remove the wait
> and see if
> things keep working or if something breaks.

No problem. But please feel free to report issues, when you think it is
generic enough to be reported.

Thanks.


-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to