Add sample config and systemd service file to beszel-agent.
Signed-off-by: Manuel Friedli <manuel@fritteli.ch>
This commit is contained in:
parent
9a2481f449
commit
4a8857379e
7 changed files with 77 additions and 6 deletions
29
app-metrics/beszel-agent/files/beszel-agent.service
Normal file
29
app-metrics/beszel-agent/files/beszel-agent.service
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue