Files

34 lines
806 B
Desktop File
Raw Permalink Normal View History

2026-08-22 16:12:14 +02:00
[Unit]
Description=Home Control Service
Documentation=file:/opt/home_control/README.md
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
2026-08-22 16:33:34 +02:00
# User=home-control
# Group=home-control
2026-08-22 16:12:14 +02:00
WorkingDirectory=/opt/home_control
ExecStart=/opt/home_control/.venv/bin/python /opt/home_control/service.py --config /opt/home_control/service.yaml
Restart=on-failure
RestartSec=15s
TimeoutStopSec=20s
# The service only needs to read its application and configuration.
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
2026-08-22 16:33:34 +02:00
ReadWritePaths=/log
2026-08-22 16:12:14 +02:00
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target