Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Linux Restarts Daemons every Sunday at 4am 1

Status
Not open for further replies.

ScottA

Technical User
Jul 10, 2000
21
US
Hello:<br><br>I'm running Linux 6.1 Pro with Apache-SSL and MySQL.<br><br>Every Sunday night at 4am the server seems to restart its services.<br><br>I'd like to either stop or control this.<br><br>Any suggestions?<br><br>ScottA
 
Take a look in the cron files in /etc/.&nbsp;&nbsp;If memory serves, on RedHat you wil have /etc/cron.daily, /etc/cron.weekly, etc.&nbsp;&nbsp;Take a look in cron.weekly - you will probably find the item that is restarting the various services.<br><br>I would leave it in, though.&nbsp;&nbsp;The reason it is there is to stop and restart long running processes.&nbsp;&nbsp;If one of these processes has a memory leak somewhere, stopping and restarting will free up the memory that has been wasted.&nbsp;&nbsp;<br><br>You might also find that some long running services only close their log files when they are stopped and started.&nbsp;&nbsp;(ie, if you did a &quot;cp /dev/null /a/log/file&quot;, the next time the log file is written to it would appear to be the same size.&nbsp;&nbsp;This is because the program in charge of the log file maintains a pointer to the current physical position in the file.&nbsp;&nbsp;When it writes it's next log entry, it writes to it's current position.&nbsp;&nbsp;If you have cleared down the log file, or moved it somewhere else, this write will create <i>x</i> null characters before it's next write point.)<br><br>So, from a systems admin point of view it's probably a good idea to leave the weekly stops and starts alone.<br><br>For more details on cron, look at the <FONT FACE=monospace>man</font> pages for cron and crontab. <p> <br><a href=mailto: > </a><br><a href= > </a><br>--<br>
0 1 - Just my two bits
 
I took a look and there is only one file there and it only does some kind of file locking and unlocking.<br><br>Anyone have any other ideas?<br><br>Thanks,<br>ScottA
 
You might want tolook in the /var/spool/cron for an entry.&nbsp;&nbsp;Also, using crontab -e while logged in as root will display the contents in edit mode.&nbsp;&nbsp;This entry is separate from the /etc/cron.x files.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top