Skip to content

Instantly share code, notes, and snippets.

@uiur
Created December 26, 2017 13:59
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 uiur/3cb5db1553c3c0a4c68f1f3878f5ed5e to your computer and use it in GitHub Desktop.
Save uiur/3cb5db1553c3c0a4c68f1f3878f5ed5e to your computer and use it in GitHub Desktop.
lonely systemd
pi@pi3:~ $ cat /etc/systemd/system/lonely.service
[Unit]
Description=lonely client
After=network-online.target nss-lookup.target
[Service]
EnvironmentFile=/home/pi/lonely.env
ExecStart=/home/pi/bin/lonely run
[Install]
WantedBy=multi-user.target
pi@pi3:~ $ cat /etc/systemd/system/lonely.timer
[Unit]
Description=Run lonely minutely
[Timer]
OnCalendar=*:*:0
Persistent=true
Unit=lonely.service
[Install]
WantedBy=timers.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment