Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@Kimmax No, I mean while the machine isn't even shutting down.
If you do
# shutdown -r +180
and close the SSH session, you can't connect to that server. You can't remotely cancel a shutdown (or in this case reboot) of three hours. -
bahua128017yWhy would you do a delayed shutdown if you don't mean it? Makes sense to me that incoming SSH sessions would be blocked. If you screwed up, then just open the console.
If you don't have console access, then take the lesson and be glad you didn't learn it during prod maintenance. -
@bahua I am always confusing seconds with those minutes with that command, I wanted it to reboot in 3 minutes because of cron jobs still running which would be done by them, but then I typed 180 because I thought it was seconds...
Anyways, I'm trying to make myself remember systemd's weirdness. -
@bahua In a screen terminal, maybe... Because I want to close the SSH session anyways.
Related Rants
TIL shutting down a Linux machine with systemd with a delay will block new SSH sessions until the shutdown/restart happened.
rant
systemd
woops