Skip to content

Workers

The workers command group allows you to manage background processes via Supervisor (Octane, queue workers, Kafka consumer, etc.).

suricatavel behaves the same with or without sudo, but it never runs PHP as root. Run as root, it runs PHP as the suricatavel user and keeps suricatavel-helper running as root only while the command lasts, for the Supervisor and package operations that need it. Run as suricatavel (as in Docker), those operations reach Supervisor only where its socket allows it.

The code (/usr/share/suricatavel) is owned by root and read-only for the application; the suricatavel user owns only its configuration (/etc/suricatavel/.env, mode 0600), its state (/var/lib/suricatavel), its caches (/var/cache/suricatavel) and its logs (/var/log/suricatavel).

Action Description
status Show status of all workers.
start Start a worker or all workers.
stop Stop a worker or all workers.
restart Restart a worker or all workers.
logs Tail logs for a specific worker.
Worker Description
deployments Handles deployment tasks.
drongo Runs the jobs of the Drongo analytical engine.
enrichments Processes data enrichment.
events Handles event processing.
firewalls Manages firewall rules.
kafka Consumes Kafka events.
reverb WebSocket server.
scheduler System task scheduler.
socket Socket service.
web The application server.
default Default queue worker.
Terminal window
# Show status of all workers
suricatavel workers status
# Start all workers
suricatavel workers start
# Restart all workers
suricatavel workers restart
# Restart specific worker (e.g. 'web')
suricatavel workers restart web
# Tail logs for a worker
suricatavel workers logs web

Shortcuts are available for common operations:

Terminal window
# Restart everything (equivalent to `suricatavel workers restart all`)
suricatavel restart
# Restart specific worker
suricatavel web restart
# Show status of specific worker
suricatavel web status