-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service to detect clones on boot
Fixes: #3068
- Loading branch information
Showing
5 changed files
with
43 additions
and
3 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
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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# On clones of machines that are currently attached, an activity ping | ||
# is required on boot to detect the clones | ||
# This requires using the ua-timer to update the activity id immediately | ||
|
||
[Unit] | ||
Description=Ubuntu Pro clone detection activity ping on boot | ||
After=network.target network-online.target systemd-networkd.service ua-auto-attach.service | ||
Wants=network-online.target | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/bin/python3 /usr/lib/ubuntu-advantage/timer.py --run-on-boot | ||
TimeoutSec=0 | ||
|
||
[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
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