[Unit] After=network-online.target [Service] User=tempreceiver Environment=RUST_LOG=info,rocket=error,_=error Environment=TEMPRECEIVER_DB_FILE=/var/lib/tempreceiver/db.sqlite3 ExecStart=/usr/bin/tempreceiver Restart=on-failure RestartSec=5s ReadWritePaths=/var/lib/tempreceiver/ NoNewPrivileges=yes PrivateTmp=yes PrivateDevices=yes PrivateUsers=yes PrivateMounts=yes DevicePolicy=closed ProtectSystem=strict ProtectHome=yes ProtectClock=yes ProtectHostname=yes ProtectControlGroups=yes ProtectKernelModules=yes ProtectKernelTunables=yes RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK CapabilityBoundingSet= SystemCallArchitectures=native SystemCallFilter=@system-service ProtectKernelLogs=yes RestrictNamespaces=yes RestrictRealtime=yes RestrictSUIDSGID=yes MemoryDenyWriteExecute=yes LockPersonality=yes RemoveIPC=yes [Install] WantedBy=multi-user.target