-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkgadmin: Use systemd.timer instead of cron
Now that many workstations are switched off during nighttime, we have the problems that these don't pull new packages. Use systemd.time and utilize `Persistent=true` to catch up on missed events at boot time. Also use `RandomizedDelaySec=2 hours` to avoid overloading the fileserver or the network when a new big package is going to be pulled by all systems.
- Loading branch information
Showing
4 changed files
with
11 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 was deleted.
Oops, something went wrong.
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,2 @@ | ||
[Service] | ||
ExecStart=pkgadmin update |
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,7 @@ | ||
[Timer] | ||
OnCalendar=2:00 | ||
RandomizedDelaySec=2 hours | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |