Skip to content

Commit

Permalink
Merge pull request #12 from devvick/main
Browse files Browse the repository at this point in the history
systemd units fixes
  • Loading branch information
Erik Hollensbe authored Jun 15, 2021
2 parents 58c1637 + eba3b97 commit 6432472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions contrib/zerotier-systemd-manager.service
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
[Unit]
Description=Update zerotier per-interface DNS settings
Wants=zerotier-systemd-manager.timer zerotier-one.service
Requires=zerotier-one.service
After=zerotier-one.service

[Service]
Type=oneshot
ExecStart=/usr/bin/zerotier-systemd-manager

[Install]
WantedBy=multi-user.target
7 changes: 2 additions & 5 deletions contrib/zerotier-systemd-manager.timer
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
[Unit]
Description=Update zerotier per-interface DNS settings
Requires=zerotier-systemd-manager.service

[Timer]
Unit=zerotier-systemd-manager.service
OnStartupSec=60
OnUnitInactiveSec=60
Persistent=true
OnStartupSec=1min
OnUnitInactiveSec=1min

[Install]
WantedBy=timers.target

0 comments on commit 6432472

Please sign in to comment.