No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-17 08:37:15 +00:00
src simplify error handling to avoid using unstable api 2025-03-05 13:45:18 +01:00
.gitignore initial commit 2024-11-13 13:21:20 +01:00
Cargo.lock add email alert option 2025-03-04 16:22:34 +01:00
Cargo.toml add email alert option 2025-03-04 16:22:34 +01:00
README.md change log level in systemd unit 2025-09-17 08:37:15 +00:00

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