first setup of the controller

This commit is contained in:
2026-08-22 16:12:14 +02:00
parent d7ddc2273f
commit 1a34118ab5
12 changed files with 604 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
[Unit]
Description=Home Control Service
Documentation=file:/opt/home_control/README.md
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
User=home-control
Group=home-control
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
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
MemoryDenyWriteExecute=true
[Install]
WantedBy=multi-user.target