Skip to content

Commit

Permalink
systemd units fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
devvick committed Jun 11, 2021
1 parent 58c1637 commit 48dba84
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=2min
OnUnitInactiveSec=1min

[Install]
WantedBy=timers.target

0 comments on commit 48dba84

Please sign in to comment.