Timed automatic reboot

Hi

Does anyone have a script / command that I can install that will make a computer running freebsd reboot at a preset time of day (say 3:00 am) every day?
 
How about a simple cron job?

Code:
0 3 * * * /sbin/shutdown -r now

Mind you, 3 AM is a bad time, because a lot of administrative bookkeeping is going on at that time. Better make it 2 AM or 4 AM.
 
leyshon said:
Hi

Does anyone have a script / command that I can install that will make a computer running freebsd reboot at a preset time of day (say 3:00 am) every day?
It is better if you explain what you are trying to accomplish. Rebooting the machine is probably the wrong way to do it.
Are you trying to restart a service?
 
Hi

I have a runaway process that I am trying to overcome. I am preparing a new installation to replace the present one because I have insufficient experience to figure out what is wrong with the present installation (which is already several upgrades old) Meanwhile a reboot solves a lot of problems.
 
@leyshon: Find the runaway process using ps (or top) and identify its PID. Then with that info, post the results of:

# fstat -p <pid_here>

Maybe someone can help you troubleshoot the problem.
 
Back
Top