Am 03.06.2014 05:56, schrieb Michael Biebl:
> Am 03.06.2014 05:43, schrieb Michael Biebl:
> 
>> I would simplify the first solution a bit though, and simply run a
>> try-restart on post, i.e. something like this
>>
>> #!/bin/bash
>> [ "$1" = "post" ] && systemctl try-restart anacron.service
> 
> Actually, better make that restart instead of try-restart, since anacron
> might have existed and the service being marked as inactive.

While at it: Seeing that we have a sleep.target where services can hook
in on suspend/hibernate, would it make sense to provide a corresponding
resume.target which is activated on resume?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to