[Unit] Description=Ethar Booking Platform WhatsApp Queue Worker Wants=network-online.target After=network-online.target mariadb.service mysql.service StartLimitIntervalSec=0 [Service] Type=simple User=www-data Group=www-data WorkingDirectory=/var/www/html ExecStart=/usr/bin/php /var/www/html/api/workers/whatsapp_queue_worker.php --batch=10 --sleep=20 Restart=always RestartSec=5 TimeoutStopSec=40 UMask=0077 RuntimeDirectory=ethar-whatsapp-worker RuntimeDirectoryMode=0750 Environment=ETHAR_WHATSAPP_WORKER_LOCK_FILE=/run/ethar-whatsapp-worker/worker.lock Environment=ETHAR_WHATSAPP_ENCRYPTION_KEY_FILE=/etc/ethar/whatsapp_gateway.key NoNewPrivileges=true PrivateTmp=true PrivateDevices=true ProtectHome=true ProtectSystem=strict ProtectKernelTunables=true ProtectKernelModules=true ProtectControlGroups=true LockPersonality=true RestrictSUIDSGID=true RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 ReadWritePaths=/run/ethar-whatsapp-worker StandardOutput=journal StandardError=journal [Install] WantedBy=multi-user.target