pscand/contrib/systemd/pscand.service
NotAShelf 033e253259
initial commit
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Ib131388c1056b6708b730a35011811026a6a6964
2026-02-19 00:13:08 +03:00

34 lines
659 B
Desktop File

[Unit]
Description=Pluggable System Condition Monitoring Daemon
Documentation=https://github.com/pscand/pscand
After=network.target
[Service]
Type=simple
ExecStart=/usr/bin/pscand run --config /etc/pscand/pscand.conf
Restart=on-failure
RestartSec=5
User=root
Group=root
# Log to journal
StandardOutput=journal
StandardError=journal
# Capabilities for sensor access
AmbientCapabilities=CAP_SYS_ADMIN CAP_DAC_OVERRIDE
# Security hardening
ProtectSystem=full
ProtectHome=true
NoNewPrivileges=false
# Runtime directory
RuntimeDirectory=pscand
RuntimeDirectoryMode=0755
# Tempfs for sensitive /proc data
PrivateTmp=true
[Install]
WantedBy=multi-user.target