cleaner usage

master
Martin Polanka 8 years ago
parent 855e3def51
commit a0e02846b8

@ -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. 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` - Running cleaner from command line is fairly simple: `recodex-cleaner -c /etc/recodex/cleaner`
- Enable cleaner service using systemd: `systemctl start recodex-cleaner.timer` - 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\""`
Loading…
Cancel
Save