### ----------------------------------------------------
### -- Cromtit
### -- Licenses: Artistic-2.0
### -- Authors: Alexey Melezhik
### -- File: cookbook.md
### ----------------------------------------------------
# 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:

```bash
mkdir -p tasks/apache/restart/
cat << HERE > tasks/apache/restart/task.bash
sudo apachectl graceful
HERE
```

Tomtit scenario:

```bash
tom --edit apache-restart

#!raku

task-run "tasks/apache/restart";
```

Cromtit jobfile

```yaml
projects:
  apache:
    path: git-repo-with-tomtit-scenarios
    action: restart
    crontab: "0 8 * * 0"
```


