You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
548 B

[Unit]
Description=TERA privileged hardware and system control adapter
After=local-fs.target
[Service]
Type=simple
User=root
Group=tera
EnvironmentFile=-/etc/tera/tera-hwd.env
ExecStart=/usr/bin/tera-hwd
Restart=on-failure
RestartSec=2s
RuntimeDirectory=tera-hwd
RuntimeDirectoryMode=0750
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_SYS_BOOT
AmbientCapabilities=CAP_DAC_OVERRIDE CAP_SYS_BOOT
ReadWritePaths=/run/tera-hwd /sys/class/leds
[Install]
WantedBy=multi-user.target