Add sample config and systemd service file to beszel-agent.
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error

Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
Manuel Friedli 2026-02-06 02:09:44 +01:00
parent 9a2481f449
commit 4a8857379e
7 changed files with 77 additions and 6 deletions

View file

@ -0,0 +1,29 @@
[Unit]
Description=Beszel Agent Service
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/usr/bin/beszel-agent
EnvironmentFile=/etc/beszel-agent/beszel-agent
Restart=on-failure
RestartSec=5
StateDirectory=beszel-agent
User=beszel-agent
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
[Install]
WantedBy=multi-user.target