Skip to content

Instantly share code, notes, and snippets.

@runjak
Last active August 29, 2015 14:12
Show Gist options
  • Save runjak/0b1fa43699cdea0c4850 to your computer and use it in GitHub Desktop.
Save runjak/0b1fa43699cdea0c4850 to your computer and use it in GitHub Desktop.
/etc/systemd/system
[Unit]
Description=Start/Stop the docker dropbox container
After=docker.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/bin/make -C <path to docker-dropbox> start
ExecStop=-/usr/bin/make -C <path to docker-dropbox> stop
[Install]
WantedBy=getty.target
[Unit]
Description=Unload/Load r8192ee kernel module
After=netctl-sleep.service
Before=sleep.target
StopWhenUnneeded=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=-/usr/bin/modprobe -r r8192ee
ExecStop=-/usr/bin/modprobe r8192ee
[Install]
WantedBy=sleep.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment