Restart
fm restart¶
Restart bench services (web, workers, redis, nginx).
Choose between container-level restarts or supervisor-level restarts for faster in-container restarts.
Usage:
Arguments:
BENCHNAME: Name of the bench.
Options:
--web: Restart web service i.e socketio and frappe server.--workers: Restart worker services i.e schedule and all workers.--redis: Restart redis services.--nginx: Restart nginx service.--container: Restart entire Docker container(s). Stops and starts the container.--supervisor: Restart supervisor processes inside container. Faster than container restart.--force: Force restart: --supervisor uses stop+start (kills processes), --container uses timeout=0 (immediate kill).
Examples¶
Restart web and workers (default)¶
Restarts both web and worker services for the bench. Safe for applying configuration changes.
Restart via container restart¶
Restarts by restarting the entire Docker containers (slower but thorough).
Restart via supervisor (faster)¶
Uses supervisor to restart processes inside containers for a faster restart without recreating containers.
Restart web services only¶
Restarts only web-related services (frappe, socketio) without touching workers.
Restart workers only¶
Restarts worker processes (schedule, long/short workers) while leaving web services running.
Force restart (immediate kill)¶
Performs an immediate kill and restart; use when processes are unresponsive.
Restart redis services¶
Restarts Redis instances used by the bench (cache and queue backends).
Restart nginx service¶
Restarts the nginx service for the bench, useful after configuration changes to proxy or TLS.