Hi,

> It *also* has After=sleep.target.
> 
> That means, depending on the timing, anacron-resume.service might be
> triggered just before suspend not on resume, and it's not guaranteed
> that anacron has finished before systemd-sleep is called.
> 
> I don't think the patch was intended this way?

I was told once to use a file like this:

> [Unit]
> Description=hdparm resume actions
> After=suspend.target
> After=hibernate.target
> After=hybrid-sleep.target
> 
> [Service]
> Type=simple
> ExecStart=/usr/lib/pm-utils/power.d/95hdparm-apm resume
> 
> [Install]
> WantedBy=suspend.target
> WantedBy=hibernate.target
> WantedBy=hybrid-sleep.target

That's working fine for me.

Kind regards,
Ralf


-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to