| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- [Unit]
- Description=hth high-temperature hood device daemon
- Documentation=file:///etc/hth/hthd.yaml
- After=systemd-tmpfiles-setup.service
- Wants=systemd-tmpfiles-setup.service
- [Service]
- Type=notify
- NotifyAccess=main
- User=hth
- Group=hth
- SupplementaryGroups=dialout hth-observe hth-control
- Restart=on-failure
- RestartSec=2s
- WatchdogSec=30
- # systemd WatchdogSec is process liveness only. hthd sends sd_notify
- # READY=1 and WATCHDOG=1. It does not replace Control Lease or FPGA SET_ALL watchdog.
- # Runtime directories come from tmpfiles.d/hth.conf (setgid observe/control).
- # Do not use RuntimeDirectory=hth 0750 hth:hth: that blocks hth-observe.
- UMask=0007
- NoNewPrivileges=true
- PrivateTmp=true
- ProtectHome=true
- ProtectSystem=strict
- ReadWritePaths=/run/hth /var/lib/hth
- ReadOnlyPaths=/etc/hth
- WorkingDirectory=/var/lib/hth
- ExecStartPre=/usr/local/bin/hthd --check-config --config /etc/hth/hthd.yaml
- ExecStart=/usr/local/bin/hthd --config /etc/hth/hthd.yaml
- TimeoutStopSec=15
- LimitNOFILE=4096
- LockPersonality=true
- RestrictSUIDSGID=true
- RestrictNamespaces=true
- SystemCallArchitectures=native
- ProtectClock=true
- ProtectKernelTunables=true
- ProtectKernelModules=true
- ProtectControlGroups=true
- # Do not set PrivateDevices=true: it hides the serial node.
- # RestrictAddressFamilies=AF_UNIX: gRPC UDS + sd_notify only. No TCP.
- RestrictAddressFamilies=AF_UNIX
- [Install]
- WantedBy=multi-user.target
|