Skip to content

Instantly share code, notes, and snippets.

@matejc
Created August 2, 2015 03:20
Show Gist options
  • Save matejc/c796375bd1576faabf73 to your computer and use it in GitHub Desktop.
Save matejc/c796375bd1576faabf73 to your computer and use it in GitHub Desktop.
systemd.services."my-post-suspend" =
{ description = "Post-Suspend Actions";
wantedBy = [ "suspend.target" ];
after = [ "post-sleep.service" ];
script =
''
sleep 3 && systemctl restart docker
'';
serviceConfig.Type = "simple";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment