-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Update the implementation of the re-installation timer to r…
…educe the likelihood of failure to execute
- Loading branch information
1 parent
03d0667
commit 2b921e5
Showing
3 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
[Unit] | ||
Description=Ensure that Tailscale is installed on your device | ||
After=network.target | ||
Requires=mnt-.rwfs.mount | ||
Wants=tailscale-install.timer | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=no | ||
Restart=no | ||
Environment=DEBIAN_FRONTEND=noninteractive | ||
ExecStart=/bin/bash /data/tailscale/manage.sh on-boot | ||
ExecStart=/bin/bash -c "/data/tailscale/manage.sh on-boot" | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
[Unit] | ||
Description=Ensure that Tailscale is updated automatically on your device. | ||
Requires=tailscale-install.service | ||
|
||
[Timer] | ||
OnBootSec=5m | ||
OnUnitActiveSec=24h | ||
Unit=tailscale-install.service | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
WantedBy=timers.target |
This file contains 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