Scheduling-Shutdown-Automatically-Linux

Scheduling Shutdown Automatically In Linux

Shutdown automatically in Linux server is very easy task. You can set shutdown operation at any time as per your requirement. It is very helpful task while running any process in the system that could be finished during night time.

In this article I will show you how you can set shutdown Linux server automatically.

Shutdown Command

Follow the below command to shutdown the system at 16:00, set time in 24hr format.

# shutdown 16:00

Cancel Scheduled Shutdown Task

Follow the below command to cancel the scheduled shutdown task.

# shutdown -c 
Broadcast message from [email protected] (Mon 2017-03-16 23:24:16 MSK):
The system shutdown has been cancelled at Mon 2016-01-18 23:25:16 MSK!

Set Cronjob

You can also set cronjob to shutdown the system automatically.

# crontab -e

0 16 * * * /sbin/shutdown

Restart Crond Service

Now restart the crond service.

# /etc/init.d/crond restart

That’s it.

I hope this article will help to shutdown Linux server automatically. If you have any queries and problem please comment in comment section.

Thanks:)

YOU MAY ALSO LIKE...

RELATED POSTS...

How to Mount FTP Share on Linux Using Curlftps Recently one user asked me one question, How I can transfer one latest file from ftp server and I also want to automate this task using shell script t...
List of all running process in Linux To show the all running process in Linux commonly ps command used, but there are different tools are available in Linux that provides you a list of al...
Top 25 Linux Find Command Examples Linux find command is a very useful command to search for file using command line. It is used to find files. Based on various search criteria like use...
Install and Configure APF ( Advanced Policy Firewa... APF Firewall Advanced Policy Firewall (APF) is an netfilter (Iptalbes) based firewall tools. We can configure APF easily with full featured firewall ...
Configuring And Installing Lighttpd Server On Cent... Lighttpd server is very light web server. It is open source web server. It can handle large number of traffic using less memory and low cpu usage, a...
Managing Web Traffic Load With HaProxy HaProxy is used to decrease the web application server load. It also used to decrease the database server load. It can handle a lot of traffic. Simi...

Sagar

Hi! I'm Sagar and I'm here to post some cool article for you. If you have any query and suggestion please comment in comment section.

Leave a Reply

Your email address will not be published. Required fields are marked *