From a0e02846b87c57000a00ef4e81fe308ef5664407 Mon Sep 17 00:00:00 2001 From: Martin Polanka Date: Sat, 22 Oct 2016 13:08:47 +0200 Subject: [PATCH] cleaner usage --- Worker.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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