The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Operating Systems > SCO
.
google unix.com



SCO Santa Cruz Operation (SCO) was a software company based in Santa Cruz, California which was best known for selling three UNIX variants for Intel x86.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
NIM server setup on etherchannel setup environment pdtak AIX 1 05-28-2008 04:54 PM
IPMP setup removed, comes back with reboot jackiea SUN Solaris 2 11-06-2007 12:18 AM
Include xhost + at auto reboot script KhawHL Shell Programming and Scripting 0 12-07-2006 12:14 AM
different between soft reboot and hard reboot seelan3 SUN Solaris 3 09-21-2006 02:12 AM
SB150 auto reboot howhowzz SUN Solaris 2 05-04-2006 06:54 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-12-2008
benefactr benefactr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 71
SCO 5.0 setup auto reboot

Hello,
How do a schedule a reboot of a SCO 5.0 box like every wednesday at 3:30 am. Doesn't have a /etc/crontab file like our Suse boxes have. Thanks for any help.
  #2 (permalink)  
Old 12-12-2008
Ikon's Avatar
Ikon Ikon is offline Forum Advisor  
Registered User
  
 

Join Date: Jul 2008
Location: Phoenix, Arizona
Posts: 669
I have to ask, why do you need to reboot everyweek? Its not Windows...
  #3 (permalink)  
Old 12-12-2008
benefactr benefactr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 71
Quote:
Originally Posted by Ikon View Post
I have to ask, why do you need to reboot everyweek? Its not Windows...
It's the old story where support and site thinking if they reboot the box on a regular basis it will go faster. Well no it's a old sco box and this won't do anything, but I will do this for them to just show nothing will happen and they will need to fork out money for a new server.
  #4 (permalink)  
Old 12-12-2008
edfair edfair is offline
Registered User
  
 

Join Date: May 2008
Location: Tucker GA
Posts: 78
Sometimes user applications leave stuff in that eventually causes the system to crash. If you had mentioned Syncronics/Realworld I would have known for certain and the weekly would have been just about right.

This is a 3 step process. First is a change in /usr/spool/cron/crontabs/root to add a line for the date and time plus the name of the file you wish to activate. I use reboot and put it in place of the standard one.
Then the reboot file itself with an init command to generate a reboot.
Then a modification to /etc/default/boot for the time delay and default level.

Mine go at 3:01 on Sunday morning to avoid the DST issue.
  #5 (permalink)  
Old 12-13-2008
edfair edfair is offline
Registered User
  
 

Join Date: May 2008
Location: Tucker GA
Posts: 78
That is how I implemented it, could be done simpler.
Cron needs to be shut down and restarted before the mod takes effect. Or the system rebooted.
  #6 (permalink)  
Old 12-17-2008
benefactr benefactr is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 71
Quote:
Originally Posted by edfair View Post
That is how I implemented it, could be done simpler.
Cron needs to be shut down and restarted before the mod takes effect. Or the system rebooted.
I tried to put /etc/shutdown -r now in a shell script and have cron run that, but the system didn't boot. Should I just call /etc/reboot from cron directly like
Code:
30 3 * * 3 /etc/reboot
Thanks.
  #7 (permalink)  
Old 12-19-2008
Eclectic Wave's Avatar
Eclectic Wave Eclectic Wave is offline
Registered User
  
 

Join Date: Feb 2008
Location: Phoenix Az
Posts: 15
You don't have to reboot or restart Cron to change your root crontab.

<Cron needs to be shut down and restarted before the mod takes effect. Or the system rebooted.>

No, you don't all you have to reboot or restart cron, what you can do is while you are are in /usr/spool/cron/crontabs is type "crontab root", this loads the new root crontab file into the cron.
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0