How to Set Automatic startup and Shutdown (including linux and windows)

Source: Internet
Author: User

How to Set Automatic startup and Shutdown (including linux and windows) (1) linux machine 1. shutdown: edit/etc/crontab and ensure that the crontab service is running. Run f1 f2 f3 f4 f5 root sudo shutdown-h now. If you want to shut down at every day, run the following command: 30 20 *** root sudo/sbin/halt for the crontab service, started by default. Chkconfig -- list indicates the service chkconfig -- add *** add auto start upon startup *** that can be automatically started upon startup. 2. Start: press the Del key to go To the BIOS setting Program Screen. Select "Power" (Power Management settings) and set "Wake System from S5" to "Enable". four items, such as "wake up date", are displayed. After the settings, the computer will automatically start up based on the time you set. Wake up date is set to 0. Wake up date hour and wake up minute are set to the specified time. (2) window machine 1. The Boot method is to press the Del key (F1 key) to enter the BIOS setup program screen. Select "Power Management Setup" and set "RTC Alarm Resume" (preset start time) to "Enabled". The following two settings appear, "Date of month" (System Boot Date) and "Time (hh: mm: ss)" (system boot Time) are used to set the start Date and Time, the date can be set to "Event Day" (daily). After the date is set, the computer will automatically start up based on the time you set. 2. Shutdown 1. "Start"-Right-click "computer" and choose "manage". In the left-side Navigation Pane, select "Task Scheduler ". 2. Select "create basic task" (wizard-based task creation is recommended for beginners) or "Create task" on the right-side interface to create a new task. 3. Click "create basic task". If you want to shut down the task at a specific time, enter "Shut Down" in the name. You do not need to enter the description. Then, click "Next ". 4. Click "task trigger" and select the time to run as needed. Select "Daily" here (you can adjust it at any time in the future ). Click "Next ". Then, you will be asked to select the specific running time, and choose as needed. 5. Select "Start Program" and click "Next ". 6. In the "launch program" dialog box, enter "shutdown" under "program and script" (excluding quotation marks ), in "add Parameters", enter "-s-f-t 10", click "Next", and then click "finish" to complete the creation. PS: 1. to change the scheduled shutdown time, go to the "Task Scheduler library", find the created "shutdown" task, double-click it, switch to the "Trigger" and select the card, and click "edit, you can modify the shutdown time. 2. "-s" in the parameter indicates shutdown; "-f" indicates forcible shutdown of the running application. To ensure smooth shutdown, this parameter is necessary; "-t 10 seconds indicates that the instance is shut down after 10 seconds. The time can be set by yourself. The unit is seconds.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.