cookbook
Cromtit cookbook
A collection of useful scenarios for different cases
Restart Apache server
This example would restart Apache server every Sunday 08:00 local server time.
Bash task:
mkdir -p tasks/apache/restart/
cat << HERE > tasks/apache/restart/task.bash
sudo apachectl graceful
HERETomtit scenario:
tom --edit apache-restart
#!raku
task-run "tasks/apache/restart";Cromtit jobfile
projects:
apache:
path: git-repo-with-tomtit-scenarios
action: restart
crontab: "0 8 * * 0"