# https://github.com/restic/rest-server/blob/master/examples/systemd/rest-server.service [Unit] Description=Rest Server After=syslog.target After=network.target Requires=rest-server.socket After=rest-server.socket [Service] Type=simple User=www-data Group=www-data ExecStart=/usr/local/bin/rest-server --path /data/backups --no-auth Restart=always RestartSec=5 ReadWritePaths=/data/backups UMask=077 CapabilityBoundingSet= LockPersonality=true MemoryDenyWriteExecute=true NoNewPrivileges=yes PrivateNetwork=yes PrivateTmp=yes PrivateDevices=true PrivateUsers=true ProtectSystem=strict ProtectHome=yes ProtectClock=true ProtectControlGroups=true ProtectKernelLogs=true ProtectKernelModules=true ProtectKernelTunables=true ProtectProc=invisible ProtectHostname=true RemoveIPC=true RestrictNamespaces=true RestrictAddressFamilies=none RestrictSUIDSGID=true RestrictRealtime=true SystemCallArchitectures=native SystemCallFilter=@system-service #CPUQuota=25% #MemoryHigh=bytes #MemoryMax=bytes #MemorySwapMax=bytes #TasksMax=N #IOReadBandwidthMax=device bytes #IOWriteBandwidthMax=device bytes #IOReadIOPSMax=device IOPS, IOWriteIOPSMax=device IOPS #IPAccounting=true #IPAddressAllow= [Install] WantedBy=multi-user.target