Bug#744753: anacron: Anacron not triggered when system resumes under systemd

Michael Biebl biebl at debian.org
Tue Jun 3 05:44:41 BST 2014


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?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20140603/25467839/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list