2026-07-15 08:07:24 +02:00
|
|
|
# varde system service. Pairs with varde.socket for socket activation;
|
|
|
|
|
# also runs standalone (the daemon binds its own socket when not
|
|
|
|
|
# activated).
|
|
|
|
|
[Unit]
|
|
|
|
|
Description=varde content-addressed blob mirror daemon
|
|
|
|
|
Documentation=man:varde(8)
|
|
|
|
|
After=network.target
|
|
|
|
|
Requires=varde.socket
|
|
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
|
Type=notify
|
|
|
|
|
ExecStart=/usr/bin/varde-daemon --system
|
|
|
|
|
Restart=on-failure
|
|
|
|
|
|
|
|
|
|
# Hardening
|
|
|
|
|
DynamicUser=yes
|
|
|
|
|
StateDirectory=varde
|
|
|
|
|
RuntimeDirectory=varde
|
2026-10-03 13:43:43 +02:00
|
|
|
# The socket unit's file lives in this directory: removing it on every
|
|
|
|
|
# service stop (the default) left varde.socket listening on an unlinked
|
|
|
|
|
# path after any restart - "active" with nothing to connect to.
|
|
|
|
|
RuntimeDirectoryPreserve=yes
|
2026-07-15 08:07:24 +02:00
|
|
|
NoNewPrivileges=yes
|
|
|
|
|
ProtectSystem=strict
|
|
|
|
|
ProtectHome=yes
|
|
|
|
|
PrivateTmp=yes
|
|
|
|
|
PrivateDevices=yes
|
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
|
ProtectKernelModules=yes
|
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK
|
|
|
|
|
RestrictNamespaces=yes
|
|
|
|
|
RestrictRealtime=yes
|
|
|
|
|
RestrictSUIDSGID=yes
|
|
|
|
|
LockPersonality=yes
|
|
|
|
|
MemoryDenyWriteExecute=yes
|
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
|
SystemCallFilter=@system-service
|
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
|
WantedBy=multi-user.target
|