How to Reboot a VPS on Schedule?

Jovani

Active member
Joined
Jul 10, 2012
Messages
338
Points
28
Hi there,

I want to know any ways How to Reboot a VPS on Schedule? it should do or not?
for example, I want to reboot my VPS automatically on 12 AM after every 3 using days

is it possible to do that?
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
Why would you want to reboot your VPS at all? Not only does this create downtime for the websites that you are hosting (which shows unreliability to your users/customers), but it is completely un-necessary. You could setup a crontab to execute the reboot command, but that brings me back to my initial question... Why?

Hi there,

I want to know any ways How to Reboot a VPS on Schedule? it should do or not?
for example, I want to reboot my VPS automatically on 12 AM after every 3 using days

is it possible to do that?
 

Hostname.club

New member
Joined
Dec 3, 2014
Messages
71
Points
0
Some application like Java will eaten RAM part-by-part, so reboot VPS is something we must do it from a backend.
One of my customer has same request like that.
 
  • Like
Reactions: Jovani

Jovani

Active member
Joined
Jul 10, 2012
Messages
338
Points
28
Jovani
You said right as my thought
I would like to know how to reboot it automatically daily or weekly on schedule :)
 

Hostname.club

New member
Joined
Dec 3, 2014
Messages
71
Points
0
Hostname.club
Our current virtualization is onApp, so we can schedule it by using a custom script from Development Team.
However if you are using OpenVZ/KVM with SolusVM, we must set it another way.
I will try to research how to do it tonight.
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
This is very simple -- don't know why you'd have to complicate things.
In SSH type the following command:

sudo crontab -e

Once the file is open, add the following line to it:

@daily root /sbin/shutdown -r now
 

Hostname.club

New member
Joined
Dec 3, 2014
Messages
71
Points
0
But if this is a Windows OS?
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
Good question, I'm sure this link might help:

[URLnf=https://askleo.com/how-do-i-schedule-a-nightly-reboot-in-windows-8-1/]https://askleo.com/how-do-i-schedule-a-nightly-reboot-in-windows-8-1/[/URLnf]
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
I am looking forward to see your script how to do that, I'm using both directadmin and cpanel/whm (vps)
This is very simple -- don't know why you'd have to complicate things.
In SSH type the following command:

sudo crontab -e

Once the file is open, add the following line to it:

@daily root /sbin/shutdown -r now
Jovani, then the above will work for you.
 

ElixantTechnology

New member
Joined
Nov 26, 2014
Messages
622
Points
0
0 0 */3 * * root /sbin/shutdown -r now

This will be for every 3 days. And this will work on any linux distro.
 
Latest threads
Replies
1
Views
43
Replies
0
Views
54
Replies
0
Views
48
Replies
1
Views
58
Replies
3
Views
129

Latest postsNew threads

Referral contests

Referral link for :

Sponsors

Popular tags

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top