systemd, running scripts after suspend/hibernate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have made the jump to systemd and I have been ironing a few things
here and there, one of them is setting the HD advanced power management
to a sane level to avoid excessive wear due to constant head parking.

I've been able to achieve this by placing my script in
/usr/lib/systemd/system-sleep, however 'man systemd-sleep' says:

"Note that scripts or binaries dropped in /usr/lib/systemd/system-sleep/
are intended for local use only and should be considered hacks."

This seems to imply that a service file should be used, what I can't
figure out from the documentation or google searches is how to implement
the functionality I want with a .service file, or if a service file is
actually needed/recommended. Any pointers or help are welcome.

-- 
Mauro Santos


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux