Created
December 26, 2017 13:59
-
-
Save uiur/3cb5db1553c3c0a4c68f1f3878f5ed5e to your computer and use it in GitHub Desktop.
lonely systemd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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