I want my server system to be kept on for always. I don't want it to shut down automatically. What is the setting commands for it? My server version is 10.04.4
There are several reasons for a computer to shutdown, and I can quickly identify 4:
You can see the reason for the shutdown with this command:
This command is used to list all system loggins, but it also displays the shutdown, reboot and boot times.
When you shutdown your computer, the run level changes to zero, so you should see this line:
If you don't see it, then it's an abnormal shutdown (power outage), and that means you should install an UPS.
It's a hardware or software problem. If your server is too hot or defective it may do an emergency shutdown after a while to prevent damage.
(if you find "bad" commands here your system might have been violated, it's not a standard behaviour).
The cron's places may vary depending on your configuration.