mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-26 18:13:40 +01:00
42 lines
829 B
SYSTEMD
42 lines
829 B
SYSTEMD
|
[Unit]
|
||
|
Description=Netbird Signal
|
||
|
Documentation=https://netbird.io/docs
|
||
|
After=network-online.target syslog.target
|
||
|
Wants=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
EnvironmentFile=-/etc/default/netbird-signal
|
||
|
ExecStart=/usr/bin/netbird-signal run $FLAGS
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
TimeoutStopSec=10
|
||
|
CacheDirectory=netbird
|
||
|
ConfigurationDirectory=netbird
|
||
|
LogDirectory=netbird
|
||
|
RuntimeDirectory=netbird
|
||
|
StateDirectory=netbird
|
||
|
|
||
|
# sandboxing
|
||
|
LockPersonality=yes
|
||
|
MemoryDenyWriteExecute=yes
|
||
|
NoNewPrivileges=yes
|
||
|
PrivateMounts=yes
|
||
|
PrivateTmp=yes
|
||
|
ProtectClock=yes
|
||
|
ProtectControlGroups=yes
|
||
|
ProtectHome=yes
|
||
|
ProtectHostname=yes
|
||
|
ProtectKernelLogs=yes
|
||
|
ProtectKernelModules=yes
|
||
|
ProtectKernelTunables=yes
|
||
|
ProtectSystem=yes
|
||
|
RemoveIPC=yes
|
||
|
RestrictNamespaces=yes
|
||
|
RestrictRealtime=yes
|
||
|
RestrictSUIDSGID=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|
||
|
|