3
0
Fork 0
forked from mirrors/nixpkgs

power management: restart post-resume.target on resume

Trigger a restart of the post-resume.target on resume.
That allows other systemd services to receive the restart signal
after resume by becoming 'partOf' the post-resume.target.
This commit is contained in:
Thomas Strobel 2015-10-06 18:47:47 +02:00
parent acb1b3cdd0
commit d5604f0b22

View file

@ -98,6 +98,7 @@ in
after = [ "suspend.target" "hibernate.target" "hybrid-sleep.target" ];
script =
''
${config.systemd.package}/bin/systemctl try-restart post-resume.target
${cfg.resumeCommands}
${cfg.powerUpCommands}
'';