From 05276d974cfe8b42387a7bfecf6da6465467e299 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 1 Nov 2021 23:22:30 -0400 Subject: [PATCH] Update install.sh --- install.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/install.sh b/install.sh index 18121fd..ed6adcf 100644 --- a/install.sh +++ b/install.sh @@ -403,26 +403,47 @@ install_pterodactyl() { if [ "$lsb_dist" = "ubuntu" ] || [ "$lsb_dist" = "debian" ]; then cat > /etc/systemd/system/pteroq.service <<- 'EOF' +# 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 EOF elif [ "$lsb_dist" = "fedora" ] || [ "$lsb_dist" = "centos" ] || [ "$lsb_dist" = "rhel" ] || [ "$lsb_dist" = "rocky" ] || [ "$lsb_dist" != "almalinux" ]; then cat > /etc/systemd/system/pteroq.service <<- 'EOF' +# 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=nginx Group=nginx 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 EOF