diff --git a/Worker.md b/Worker.md index 0d435c7..47411cb 100644 --- a/Worker.md +++ b/Worker.md @@ -362,4 +362,6 @@ file-age: "3600" # in seconds As stated before cleaner should be cronned, on linux systems this can be done by built in `cron` service or if there is `systemd` present cleaner itself provides `*.timer` file which can be used for cronning from `systemd`. On Windows systems internal scheduler should be used. - Running cleaner from command line is fairly simple: `recodex-cleaner -c /etc/recodex/cleaner` -- Enable cleaner service using systemd: `systemctl start recodex-cleaner.timer` \ No newline at end of file +- Enable cleaner service using systemd: `systemctl start recodex-cleaner.timer` +- Add cleaner to linux cron service using following configuration line: `0 0 * * * /usr/bin/recodex-cleaner -c /etc/recodex/cleaner/config.yml` +- Add cleaner to Windows cheduler service with following command: `schtasks /create /sc daily /tn "ReCodEx Cleaner" /tr "\"C:\Program Files\ReCodEx\cleaner\recodex-cleaner.exe\" -c \"C:\Program Files\ReCodEx\cleaner\config.yml\""` \ No newline at end of file