generated from golang-templates/seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,8 +25,7 @@ | |
"env": {}, | ||
"args": [ | ||
"parse", | ||
"crontab.log", | ||
"-u" | ||
"crontab.example", | ||
] | ||
}, | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,81 @@ | ||
# yaml-language-server: $schema=schema.json | ||
#TODO: unix/tcp socket controller | ||
#TODO: prometheus exporter | ||
|
||
jobs: | ||
- name: Test Job | ||
- description: Imported from cron file | ||
events: | ||
- cron: 0 * * * * | ||
hooks: {} | ||
name: "FromCron: 0 * * * *" | ||
tasks: | ||
- command: /usr/bin/wget -O - -q -t 1 http://localhost/cron.php | ||
- description: Imported from cron file | ||
events: | ||
- cron: "* * * * *" | ||
hooks: {} | ||
name: "FromCron: * * * * *" | ||
tasks: | ||
- command: /var/www/devdaily.com/bin/check-apache.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 5 10,22 * * * | ||
hooks: {} | ||
name: "FromCron: 5 10,22 * * *" | ||
tasks: | ||
- command: /var/www/devdaily.com/bin/mk-new-links.php | ||
- description: Imported from cron file | ||
events: | ||
- cron: 30 4 * * * | ||
hooks: {} | ||
name: "FromCron: 30 4 * * *" | ||
tasks: | ||
- command: /var/www/devdaily.com/bin/create-all-backups.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 5 0,4,10,16 * * * | ||
hooks: {} | ||
name: "FromCron: 5 0,4,10,16 * * *" | ||
tasks: | ||
- command: /var/www/devdaily.com/bin/create-cat-list.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 5 0 * * * | ||
hooks: {} | ||
name: "FromCron: 5 0 * * *" | ||
tasks: | ||
- command: /var/www/devdaily.com/bin/resetContactForm.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 0,20,40 * * * * | ||
hooks: {} | ||
name: "FromCron: 0,20,40 * * * *" | ||
tasks: | ||
- command: /var/www/bin/ads/freshMint.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 5,25,45 * * * * | ||
hooks: {} | ||
name: "FromCron: 5,25,45 * * * *" | ||
tasks: | ||
- command: echo 1 | ||
retry-delay: 5s | ||
# connections: | ||
# - image: docker-mysql-database-phpmyadmin | ||
# volumes: | ||
# - "/home/motalleb/Downloads:/var/local/test" | ||
# env: | ||
# SHELL: /bin/bash | ||
- command: /var/www/bin/ads/greenTaffy.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 10,30,50 * * * * | ||
hooks: {} | ||
name: "FromCron: 10,30,50 * * * *" | ||
tasks: | ||
- command: /var/www/bin/ads/raspberry.sh | ||
- description: Imported from cron file | ||
events: | ||
- cron: 15,35,55 * * * * | ||
hooks: {} | ||
name: "FromCron: 15,35,55 * * * *" | ||
tasks: | ||
- command: /var/www/bin/ads/robinsEgg.sh | ||
- description: Imported from cron file | ||
events: | ||
- on-init: true | ||
- web-event: test | ||
hooks: {} | ||
name: "FromCron: @reboot" | ||
tasks: | ||
- command: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#-------------------------------------------------- | ||
# example unix/linux crontab file format: | ||
#-------------------------------------------------- | ||
# min,hour,dayOfMonth,month,dayOfWeek command | ||
# | ||
# field allowed values | ||
# ----- -------------- | ||
# minute 0-59 | ||
# hour 0-23 | ||
# day of month 1-31 | ||
# month 1-12 (or names, see below) | ||
# day of week 0-7 (0 or 7 is Sun, or use names) | ||
# | ||
#-------------------------------------------------- | ||
|
||
# run the drupal cron process every hour of every day | ||
0 * * * * /usr/bin/wget -O - -q -t 1 http://localhost/cron.php | ||
|
||
# run this apache kludge every minute of every day | ||
* * * * * /var/www/devdaily.com/bin/check-apache.sh | ||
|
||
# generate links to new blog posts twice a day | ||
5 10,22 * * * /var/www/devdaily.com/bin/mk-new-links.php | ||
|
||
# run the backup scripts at 4:30am | ||
30 4 * * * /var/www/devdaily.com/bin/create-all-backups.sh | ||
|
||
# re-generate the blog "categories" list (four times a day) | ||
5 0,4,10,16 * * * /var/www/devdaily.com/bin/create-cat-list.sh | ||
|
||
# reset the contact form just after midnight | ||
5 0 * * * /var/www/devdaily.com/bin/resetContactForm.sh | ||
|
||
# rotate the ad banners every five minutes | ||
|
||
0,20,40 * * * * /var/www/bin/ads/freshMint.sh | ||
5,25,45 * * * * /var/www/bin/ads/greenTaffy.sh | ||
10,30,50 * * * * /var/www/bin/ads/raspberry.sh | ||
15,35,55 * * * * /var/www/bin/ads/robinsEgg.sh | ||
|
||
@reboot test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters