-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nikhil Dikshit
committed
Mar 10, 2023
1 parent
de6f785
commit 597c6a8
Showing
5 changed files
with
26 additions
and
11 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,3 +1,8 @@ | ||
* Thu Mar 09 2023 Nikhil Dikshit <[email protected]> 2.0-1.amzn2023.0.3 | ||
- Migrated Cron job to Systemd timer | ||
- Trigger update-motd.service after cloud-final.service | ||
- Set RemainAfterExit=no on update-motd so that timer can restart it after exit | ||
|
||
* Thu Feb 02 2023 Stewart Smith <[email protected]> - 2.0-1.amzn2023.0.2 | ||
- Mass rebuild for AL2023 | ||
|
||
|
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 |
---|---|---|
@@ -1,11 +1,15 @@ | ||
[Unit] | ||
Description=Dynamically Generate Message Of The Day | ||
After=network-online.target | ||
# running update-motd.service after cloud-final.service, which will be later in the boot process | ||
# this is to avoid running update-motd at the same time with other services such as dnf activities in userdata scripts | ||
After=network-online.target cloud-final.service | ||
|
||
[Service] | ||
Type=oneshot | ||
ExecStart=/usr/sbin/update-motd | ||
RemainAfterExit=yes | ||
# update-motd should not be considered active when its processes have exited | ||
# timer should be able to restart update-motd even after exit | ||
RemainAfterExit=no | ||
|
||
[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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[Unit] | ||
Description=Timer for Dynamically Generate Message Of The Day | ||
|
||
[Timer] | ||
OnUnitActiveSec=720min | ||
RandomizedDelaySec=720min | ||
FixedRandomDelay=true | ||
Persistent=true | ||
|
||
[Install] | ||
WantedBy=timers.target |