[Unit]
Description=AYN Antivirus Scanner Daemon
After=network-online.target
Wants=network-online.target
Documentation=https://github.com/ayn-antivirus

[Service]
Type=simple
User=root
WorkingDirectory=/opt/ayn-antivirus
ExecStart=/opt/ayn-antivirus/bin/run-scanner.sh
Restart=always
RestartSec=10
Environment=PYTHONPATH=/opt/ayn-antivirus
Environment=AYN_DATA_DIR=/var/lib/ayn-antivirus
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
