Compare commits
2 Commits
d3ba31c45e
...
96851e9a34
Author | SHA1 | Date | |
---|---|---|---|
|
96851e9a34 | ||
|
cb862c02b3 |
@ -9,6 +9,8 @@ RUN docker-php-ext-install pdo_mysql opcache gd zip ldap
|
||||
|
||||
COPY ./crontab /etc/cron.d/crontab
|
||||
|
||||
COPY ./petroq.service /etc/systemd/system
|
||||
RUN systemctl enable --now pteroq.service
|
||||
RUN chmod 0644 /etc/cron.d/crontab
|
||||
|
||||
RUN /usr/bin/crontab /etc/cron.d/crontab
|
||||
|
20
php-cli/petroq.service
Normal file
20
php-cli/petroq.service
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user