[Unit] Description=Virt Cloud purchased VM provisioning worker After=network-online.target Wants=network-online.target [Service] Type=simple # AlmaLinux PHP-FPM normally runs as apache; use the same user as your PHP pool. User=apache Group=apache WorkingDirectory=/home/virt-cloud/web ExecStart=/usr/bin/php /home/virt-cloud/web/xcat cloudWorker Restart=on-failure RestartSec=5 UMask=0077 NoNewPrivileges=true PrivateTmp=true ProtectHome=false ProtectSystem=strict ReadWritePaths=-/home/virt-cloud/runtime/php ReadWritePaths=-/home/virt-cloud/web/storage TimeoutStopSec=30 [Install] WantedBy=multi-user.target