Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change update-motd.service to also set Wants=, fix typo, use RPM path macros #2

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ziggythehamster
Copy link

Description of changes:

update-motd.service is currently not guaranteed to start after network-online.target and cloud-final.service have finished, but rather only after they have been started. This creates the possibility of a race condition where usually update-motd.service runs when these have finished, but sometimes they have not. If a MOTD script is dependent on something that is set up by cloud-final.service or the network takes slightly longer than normal to initialize, this would pose an issue some of the time.

To prevent this, this PR also sets Wants=, so that update-motd.service won't start unless those services have finished starting or are not scheduled to start.

This PR also fixes a typo in the description and changes the RPM spec to use macros for paths like /etc and /var/lib, which is the standard practice in RPM distros.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant