OpenShift Adding cron Timer tasks

Source: Internet
Author: User

General Linux Add Cron task is in/etc/crontab, but due to openshift permission wood is so open, so if you need to set up a scheduled task, you need to add your SH file under the following folder, Because I need to run it once a day, so put it under the Daily folder, use the chmod 711 restart.sh command, or use WINSCP to change its permissions to 711.

However, when you finish the above steps, you will find that this script will not work because there is one of the most important steps not to do, install the Cron service. Click the available list that the arrows refer to.

Go to the Available Cartridges list page and see Cron1.4. After entering, click "Add CARTRIDG" to add the service.

OpenShift Adding cron Timer tasks

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.