Hi,

On Sun, Sep 27, 2015 at 09:55:28PM +0530, Ritesh Raj Sarraf wrote:
> Okay!! You got me worried.
> 
> So I went and added some custom commands into exec-modules to see if
> systemd was killing it ever.

Well, you should be worried.  I just unplugged the AC and the disk didn't
start spinning.  That would probably be nice in itself, but it means hdparm
didn't get called.  So I also tried some custom commands.  I created a script
in /etc/laptop-mode/modules/xxx that reads:

#!/bin/bash
echo now >&2
sleep 10
echo 10 secs later >&2

And guess what... I never saw the second message in the journal.

So I'm putting the wait back in.

-- 
Tomáš Janoušek, a.k.a. Pivník, a.k.a. Liskni_si, http://work.lisk.in/

Reply via email to