No description
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| README.md | ||
gdavonaccess
A simple wrapper for gdavclientc that watches directories for file changes and scans them automatically.
usage
gdavonaccess -p <path>..., e.g. gdavonaccess -p /mnt/data /home/anto/data
Options:
-e: path to gdavclientc
-q: path to quarantine directory
-n: max number of concurrent scans
-l: log level (off|error|warn|info|debug|trace)
--smtp-url: smtp connection url (e.g. smtp://127.0.0.1:25)
--smtp-sender: email address for FROM header
--smtp-receiver: mail addresses to send alerts to
systemd unit
Example for a systemd unit file (place in /etc/systemd/system/gdavonaccess.service and adapt user and paths).
[Unit]
Description=A simple wrapper for gdavclientc that watches directories for file changes and scans them automatically
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root
ExecStart=/root/bin/gdavonaccess -l warn -p /mnt/ckan -q /mnt/ckan/quarantine
Restart=on-failure
RestartSec=5
StartLimitInterval=60s
StartLimitBurst=3
[Install]
WantedBy=default.target
Alias=gdavonaccess.service