[Unit] Description=moments ingestion worker Documentation=https://git.lair.cafe/grenade/moments After=network-online.target Wants=network-online.target [Service] Type=simple User=moments Group=moments EnvironmentFile=/etc/moments/worker.env ExecStart=/usr/local/bin/moments-worker Restart=on-failure RestartSec=10s # Hardening NoNewPrivileges=true ProtectSystem=strict ProtectHome=true PrivateTmp=true PrivateDevices=true ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictRealtime=true RestrictSUIDSGID=true LockPersonality=true MemoryDenyWriteExecute=true SystemCallArchitectures=native ReadWritePaths=/var/lib/moments RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 [Install] WantedBy=multi-user.target