Debian Codegraph @

debian/avr-evtd.service

raw
1 [Unit]
2 Description=AVR Event Daemon for Linkstation/Kurobox
3 Documentation=https://github.com/rbrito/avr-evtd
4 After=network.target
5 After=systemd-udevd.service
6 Wants=sys-devices-virtual-misc-rfkill.device
7 Before=shutdown.target reboot.target
8
9 [Service]
10 Type=forking
11 ExecStart=/usr/sbin/avr-evtd -d /dev/ttyS1
12 ExecReload=/bin/kill -HUP $MAINPID
13 Restart=on-failure
14 RestartSec=5s
15 User=root
16 Group=root
17
18 # Environment file for configuration
19 EnvironmentFile=/etc/default/avr-evtd
20
21 # Working directory
22 WorkingDirectory=/etc/avr-evtd
23
24 # Security settings with necessary hardware access
25 NoNewPrivileges=yes
26 PrivateTmp=yes
27 ProtectSystem=strict
28 ProtectHome=yes
29 ReadWritePaths=/dev /sys /proc /var/log
30 DeviceAllow=/dev/ttyS1 rw
31 DeviceAllow=char-tty rw
32
33 # Logging
34 StandardOutput=journal
35 StandardError=journal
36 SyslogIdentifier=avr-evtd
37
38 [Install]
39 WantedBy=multi-user.target
40