[Unit] Description=AVR Event Daemon for Linkstation/Kurobox Documentation=https://github.com/rbrito/avr-evtd After=network.target After=systemd-udevd.service Wants=sys-devices-virtual-misc-rfkill.device Before=shutdown.target reboot.target [Service] Type=forking ExecStart=/usr/sbin/avr-evtd -d /dev/ttyS1 ExecReload=/bin/kill -HUP $MAINPID Restart=on-failure RestartSec=5s User=root Group=root # Environment file for configuration EnvironmentFile=/etc/default/avr-evtd # Working directory WorkingDirectory=/etc/avr-evtd # Security settings with necessary hardware access NoNewPrivileges=yes PrivateTmp=yes ProtectSystem=strict ProtectHome=yes ReadWritePaths=/dev /sys /proc /var/log DeviceAllow=/dev/ttyS1 rw DeviceAllow=char-tty rw # Logging StandardOutput=journal StandardError=journal SyslogIdentifier=avr-evtd [Install] WantedBy=multi-user.target