LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-18-2014, 07:36 PM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
fsck and reboot at certain time, but able to log out of ssh session and not kill it


So if I want to do a fsck and restart on a RHEL server, it looks like I need to do

touch /forcefsck
shutdown -r 03:00

But do I need to do a
shutdown -r 03:00 &
or something so I can close my SSH session through Putty, without killing the scheduled reboot?
 
Old 11-19-2014, 06:17 AM   #2
linosaurusroot
Member
 
Registered: Oct 2012
Distribution: OpenSuSE,RHEL,Fedora,OpenBSD
Posts: 982
Blog Entries: 2

Rep: Reputation: 244Reputation: 244Reputation: 244
tune2fs with -c and -C to set fsck requirements
cron for the scheduling
 
Old 11-19-2014, 06:24 AM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
Right. I was talking more about a one-time deal, and it seems that the & is needed at the end of the shutdown command.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH concurrent session limit and idle session time out lasygsd Linux - Newbie 3 10-30-2014 07:56 AM
Two Processes for an ssh Session or Log-in devUnix Linux - Networking 1 07-29-2013 05:02 AM
SSH Session slows down over time while connected thebombzen Linux - Software 1 05-09-2013 10:45 AM
[SOLVED] Trying to kill a Firefox window through remote ssh session JimiSc Linux - Software 8 06-26-2012 01:12 AM
Log reboot time? x5452 Linux - Software 2 03-30-2004 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration