| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- # hthd instance unit: one serial controller = one process.
- # Usage: systemctl enable --now hthd@controller0.service
- # Config: /etc/hth/hthd@%i.yaml
- [Unit]
- Description=hth high-temperature hood daemon (%i)
- Documentation=file:///etc/hth/hthd@%i.yaml
- After=systemd-tmpfiles-setup.service
- Requires=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
- 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@%i.yaml
- ExecStart=/usr/local/bin/hthd --config /etc/hth/hthd@%i.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
- [Install]
- WantedBy=multi-user.target
|