Union flag call 0330 660 0255status support
log in
  • Heart Internet mobile logo
  • Heart Internet Logo
  • Reseller Hosting
  • Premium Hosting
  • Web Hosting
  • VPS
  • Dedicated Servers
  • More

For account and billing queries call our helpline
0330 660 0255

For technical issues relating to your hosting please use our Support database



For information on the status of the Heart servers please use our status page

Heart Internet Support Database
  • Get support
  • Suggest a question
All Categories
Expand
Category
Accounts and Billing (54)
Expand
Category
Add-Ons (84)
Expand
Category
cPanel Web Hosting (26)
Expand
Category
Domain Names (203)
Expand
Category
Email Hosting (153)
Expand
Category
Managed WordPress (147)
Expand
Category
Reseller Hosting (162)
Collapse
Category
Servers (514)
Collapse
Category
1st & 2nd Generation Dedicated Servers (147)
empty
Category
cPanel (9)
empty
Category
Linux (17)
empty
Category
Other (20)
empty
Category
Plesk (15)
empty
Category
WHM (6)
empty
Category
Windows (16)
Expand
Category
Hybrid Servers (158)
empty
Category
Latest Generation Dedicated Servers (36)
empty
Category
SSH (12)
Expand
Category
VPS (161)
Expand
Category
Web Hosting (650)
Home » Categories » Multiple Categories

How do I schedule a shutdown on my server?

Article Number: 55 | Rating: 1/5 from 1 votes | Last Updated: Thu, Apr 23, 2015 at 10:47 AM

To schedule a shutdown in Linux

You will need to be able to access your server’s command line as the root user. This is achieved usually by using SSH.

To schedule a command, you use the ‘at’ command.

If ‘at’ does not exist on your server:

  1. Install ‘at’ via Yum by entering:

yum -y install at

Then to set up a shutdown:

  1. Enter the line:

echo “shutdown -h now” | at 21:30 + 7 days

This will perform ‘shutdown -h now’ at 21:30 seven days from now.  You can change the shutdown arguments to delay the shutdown as needed.

To cancel the job:

  1. Enter the line:

at -l

  1. Then enter the line:

atrm

To schedule a shutdown on Windows

  1. Log into your server as the Administrator
  2. Go to Start
  3. Go to Administrative Tools
  4. Go to Task Scheduler
  5. Select ‘Create Basic Task’
  6. Enter the name for the task
  7. Click ‘Next’
  8. Select ‘One Time’ as the trigger
  9. Click ‘Next’
  10. Choose date and time to initiate shutdown
  11. Click ‘Next’
  12. Select ‘Start a Program’
  13. Click ‘Next’
  14. Enter ‘shutdown’ as the Program/Script
  15. In the ‘Add Arguments’ field, enter

/s /c “Scheduled shutdown”

  1. To give anyone currently using the server an additional warning, add a timed delay to the shutdown by appending ‘/t’ and number to the arguments, such as:

/s /c “Scheduled shutdown” /t 60

  1. Click ‘Next’
  2. Check the box next to ‘Open the Properties dialog for this task when I click Finish’
  3. Click ‘Finish’
  4. In the Properties dialog, under the General tab, change the Security options so that the task runs whether  the user is logged in or not
  5. Click ‘OK’
  6. Enter the password for the Administrator account to confirm
Posted - Tue, Mar 3, 2015 at 4:03 PM.
Filed Under: 1st & 2nd Generation Dedicated Servers, Hybrid Servers, Linux, Linux, Linux, Other, Other, Other, SSH, VPS, Windows, Windows, Windows
1 (1)
Article Rating (1 Votes)
Rate this article
  • Icon PrinterPrint Article
  • Icon EmailEmail Article to Friend
  • Icon PDFExport to PDF
Related Articles
How do I order an SSL Certificate?
Added on Tue, Dec 15, 2020
How do I get support from the Heart Internet Customer Services team?
Added on Tue, Mar 3, 2015
How do I connect to my virtual Linux server through SSH?
Added on Wed, Mar 25, 2015
Why can I only see one disk on my RAID server?
Added on Tue, Mar 3, 2015
How can I install new Apache or PHP components on my cPanel-running server?
Added on Tue, Mar 3, 2015
 
Heart Internet Logo
Services
  • Domain Names
  • Web Hosting
  • Premium Hosting
  • Reseller Hosting
  • More
  • Virtual Private Servers
  • Dedicated Servers
  • Sign Up
Company
  • About Heart Internet
  • Our Blog
  • Support
  • Our Awards
  • More
  • Careers
  • Contact Us
  • Testimonials and Reviews
Community
  • Affiliate Program
  • Events We Sponsor
© 2016 Heart Internet Ltd. All rights reserved.
Terms and conditions Privacy Policy Sitemap
Heart Internet Logo