Restarting Services
You can restart some of the system services from the commandline. Commands may differ between a control server and a hypervisor.
Control Server
To restart the basic services on the control server (fpm,web,queue). You can run the following command.
vfcli-ctrl app:restart
If you would like to restart specific services, you can specify the required services using the --services
argument.
The following services are available.
Flag | Description |
---|---|
fpm | Restart PHP FPM. |
web | Restart the webserver. |
wss | Restart the websocket server. |
vnc | Restart the VNC proxy. |
queue | Gracefully restart the queue workers. |
queue-hard | Hard restart the queue workers. |
For example, to restart the queue and websocket server.
vfcli-ctrl app:restart --services=queue,wss
Hypervisor
Restarting services on a hypervisor may cause tasks to fail. It's advised to put the control server into maintenance mode before running any restart commands.
To restart the basic services on the hypervisor (fpm,system-fpm,web,queue). You can run the following command.
vfcli-hv app:restart
If you would like to restart specific services, you can specify the required services using the --services
argument.
The following services are available.
Flag | Description |
---|---|
fpm | Restart PHP FPM. |
system-fpm | Restart system PHP FPM. |
web | Restart the webserver. |
queue | Gracefully restart the queue workers. |
queue-hard | Hard restart the queue workers. |
For example, to restart system-fpm and webserver.
vfcli-hv app:restart --services=system-fpm,web