gentoo-overlay/www-apps/beszel-hub/files/beszel-hub.service
Manuel Friedli a4cb8b04d0
Some checks failed
continuous-integration/drone/push Build is failing
www-apps/beszel-hub: Last cleanup
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
2026-02-06 22:31:36 +01:00

30 lines
660 B
Desktop File

[Unit]
Description=Beszel Hub Service
After=network.target
[Service]
Type=simple
Restart=always
RestartSec=5
ExecStart=/usr/bin/beszel-hub serve --dir /var/lib/beszel-hub/data --http ${BESZEL_HUB_SERVE_HTTP} --https ${BESZEL_HUB_SERVE_HTTPS}
WorkingDirectory=/var/lib/beszel-hub
EnvironmentFile=/etc/beszel-hub/beszel-hub.env
User=beszel-hub
Group=beszel
# Security/sandboxing settings
KeyringMode=private
LockPersonality=yes
NoNewPrivileges=yes
ProtectClock=yes
ProtectHome=read-only
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectSystem=strict
RemoveIPC=yes
RestrictSUIDSGID=true
ReadWritePaths=/var/lib/beszel-hub
[Install]
WantedBy=multi-user.target