@@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=InvestMoz Laravel database queue
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=www-data
|
||||
Group=www-data
|
||||
WorkingDirectory=/var/www/investemoz
|
||||
ExecStart=/usr/bin/php8.5 /var/www/investemoz/artisan queue:work database --queue=default --sleep=3 --tries=3 --timeout=30 --max-time=3600
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
TimeoutStopSec=60
|
||||
KillSignal=SIGTERM
|
||||
UMask=0027
|
||||
NoNewPrivileges=true
|
||||
PrivateTmp=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
ReadWritePaths=/var/www/investemoz/storage /var/www/investemoz/bootstrap/cache
|
||||
StandardOutput=journal
|
||||
StandardError=journal
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user