hi i am having certain probems with my VPS . i want some command which can reboot my server after every 4-5hours.. i really do not mind if the vps is down for 2-3minutes instead of 7-8hours thanks a lot (i am running centos OS)
seems a better option is to figure out why you are having issues and correct those. Rebooting server so frequently seems like a bad idea because what if it doesnt come back up?
My guess is you are running out of memory. Try restarting RAM hogs service rather than restarting the whole VPS. Maybe you need a better VPS.