[Unit] Description=FSE3D Calculation Worker (%i) After=network.target [Service] Type=simple User=fse3d Group=fse3d WorkingDirectory=/home/fse3d Environment="PATH=/home/fse3d/.venv/bin" EnvironmentFile=/home/fse3d/.env ExecStart=/home/fse3d/.venv/bin/python -m app.calculation_worker --pool %i --slots 1 Restart=always RestartSec=5 TimeoutStopSec=30 KillMode=control-group UMask=0077 NoNewPrivileges=true PrivateTmp=true PrivateDevices=true ProtectSystem=strict ProtectHome=read-only ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true RestrictSUIDSGID=true LockPersonality=true ReadWritePaths=/home/fse3d/tmp [Install] WantedBy=multi-user.target