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

Fix reboot message for linux hosts #213

Merged
merged 2 commits into from
Aug 14, 2019

Conversation

nmaludy
Copy link
Contributor

@nmaludy nmaludy commented Jul 12, 2019

Previously Linux hosts that were rebooted with a warning message didn't have their message displayed unless the reboot delay was >= 60 seconds.

Looks like this is a race condition with the way shutdown -r +0 "my message" works because that doesn't work on the CLI either when i tried it.

On the CLI manually i was able to get the message to display by doing: wall "my message"; shutdown -r +0.

To fix this problem i checked to see if we're waiting for < 1 minute (ie. using the sleep command to wait) and if so run a wall "$message" before executing the shutdown. This way the message will be displayed.

@sheenaajay
Copy link
Contributor

Thanks for submitting the PR @nmaludy .

@nmaludy
Copy link
Contributor Author

nmaludy commented Jul 29, 2019

@sheenaajay i resolved the merge conflict in the CHANGELOG, should be good to go now.

@sheenaajay
Copy link
Contributor

Screen Shot 2019-08-14 at 13 16 23

@sheenaajay
Copy link
Contributor

Thank you @nmaludy

@sheenaajay sheenaajay merged commit e4023cf into puppetlabs:master Aug 14, 2019
@nmaludy nmaludy deleted the bugfix/reboot-message branch August 14, 2019 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants