diff --git a/php-cli/petroq.service b/php-cli/petroq.service new file mode 100644 index 0000000..6663bb9 --- /dev/null +++ b/php-cli/petroq.service @@ -0,0 +1,20 @@ +# Pterodactyl Queue Worker File +# ---------------------------------- + +[Unit] +Description=Pterodactyl Queue Worker +After=redis-server.service + +[Service] +# On some systems the user and group might be different. +# Some systems use `apache` or `nginx` as the user and group. +User=www-data +Group=www-data +Restart=always +ExecStart=/usr/bin/php /var/www/pterodactyl/artisan queue:work --queue=high,standard,low --sleep=3 --tries=3 +StartLimitInterval=180 +StartLimitBurst=30 +RestartSec=5s + +[Install] +WantedBy=multi-user.target \ No newline at end of file