[Unit] Description=Web Log Security Monitor After=network.target [Service] Type=oneshot User=aj ExecStart=/usr/bin/python3 /home/aj/web-log-monitor/web-log-monitor.py WorkingDirectory=/home/aj/web-log-monitor # Logging StandardOutput=append:/var/log/web-log-monitor.log StandardError=append:/var/log/web-log-monitor.log