Page 1 of 1
automatic restart
Posted: Thu 13. Oct 2022, 19:20
by PuntonetSvb
I want to make my server restart every day at 2 in the morning, using scheduled tasks, it asks me for a command, I put reboot, sudo reboot, and it gives me an error, what command could I use?
Re: automatic restart
Posted: Thu 13. Oct 2022, 19:36
by 24unix
You are not using Windows.
Why do you want to restart so often?
Re: automatic restart [SOLVED]
Posted: Thu 13. Oct 2022, 19:50
by Tobi
The correct syntax is

- reboot.png (4.34 KiB) Viewed 4871 times
Re: automatic restart
Posted: Mon 31. Oct 2022, 19:34
by alamis
Tobi wrote: ↑Thu 13. Oct 2022, 19:50
The correct syntax is
reboot.png
And why sbin?
Re: automatic restart
Posted: Mon 31. Oct 2022, 19:41
by 24unix
alamis wrote: ↑Mon 31. Oct 2022, 19:34
Tobi wrote: ↑Thu 13. Oct 2022, 19:50
The correct syntax is
reboot.png
And why sbin?
And as of usermerge it's also available as /sbin/reboot
Re: automatic restart
Posted: Tue 1. Nov 2022, 08:04
by Tobi
alamis wrote: ↑Mon 31. Oct 2022, 19:34
And why sbin?
because it works

Re: automatic restart
Posted: Tue 1. Nov 2022, 16:07
by BasHeijermans
PuntonetSvb wrote: ↑Thu 13. Oct 2022, 19:20
I want to make my server restart every day at 2 in the morning, using scheduled tasks, it asks me for a command, I put reboot, sudo reboot, and it gives me an error, what command could I use?
Why?
We Linux users are proud to show our uptimes, the longer the better.
We never reboot unless is absolutly needed, something like this is our goal:
Code: Select all
16:06:35 up 83 days, 2:57, 1 user, load average: 1,58, 1,70, 1,72
And even that is short compared to a lot of others
