Fedora Linux Support Community & Resources Center
  #1  
Old 12th May 2012, 12:19 PM
graysky Offline
Registered User
 
Join Date: May 2011
Posts: 17
linuxchrome
systemd close network connections on reboot/poweroff

I am connecting from my laptop to my server via ssh. I want to restart the server from the ssh connection I just started. After I issue the `systemctl reboot` command, the shell I used to connect to the server hangs. I'd like it systemd to log me out gracefully.

Code:
# systemctl reboot

Broadcast message from facade@mars on pts/0 (Thu, 10 May 2012 11:59:24 -0400):

The system is going down for reboot NOW!

# Write failed: Broken pipe
Reply With Quote
  #2  
Old 12th May 2012, 01:00 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,870
linuxfirefox
Re: systemd close network connections on reboot/poweroff

Then don't use reboot.

The command to shutdown after a time delay is "shutdown -r <time>". If the <time> option is not put, it means 1 (minute) which should give you enough time to logout.

The -r directs shutdown to reboot.
Reply With Quote
  #3  
Old 12th May 2012, 02:36 PM
graysky Offline
Registered User
 
Join Date: May 2011
Posts: 17
linuxchrome
Re: systemd close network connections on reboot/poweroff

My problem was using sshd.service -- sshd.socket is better for my needs.
Reply With Quote
Reply

Tags
close, connections, network, reboot or poweroff, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
network connections is inactive I can not set internet connections johnnytda Installation, Upgrades and Live Media 5 9th June 2011 08:48 AM
No poweroff / reboot buttons macek Using Fedora 4 22nd June 2009 09:59 PM
sshd restarts with reboot but won't allow connections philstewart Using Fedora 29 14th December 2007 11:24 AM
Shutdown -h vs. Poweroff / Shutdown -r vs. Reboot aab45 Using Fedora 1 19th July 2005 01:29 PM


Current GMT-time: 07:47 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Fes - Papantla de Olarte Travel Photos - Compostela Photos on Instagram