LinuxQuestions.org
Help answer threads with 0 replies.
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
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,685

Rep: Reputation: 48
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
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,685

Original Poster
Rep: Reputation: 48
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


All times are GMT -5. The time now is 10:59 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration