Skip to content

Instantly share code, notes, and snippets.

@ironpillow
Created October 26, 2019 22:38
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 ironpillow/8b7d3495cdd8dd17278030e44b9de64f to your computer and use it in GitHub Desktop.
Save ironpillow/8b7d3495cdd8dd17278030e44b9de64f to your computer and use it in GitHub Desktop.
[Unit]
Description=fix
After=other.service
[Service]
Type=oneshot
ExecStart=/bin/bash /usr/local/bin/myfix.sh
[Install]
WantedBy=multi-user.target
[Unit]
Description=fix timer
[Timer]
Unit=myfix.service
OnBootSec=5min
OnCalendar=*:0/30
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment