Skip to content

Instantly share code, notes, and snippets.

@zoqaeski
Last active December 20, 2015 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zoqaeski/6162240 to your computer and use it in GitHub Desktop.
Save zoqaeski/6162240 to your computer and use it in GitHub Desktop.
Automatically restarts upower to work around libusbx bug.
[Unit]
Description=Restart upower to fix libusbx bug.
After=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart upower.service
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment