Cpanel Restart Service

[Solved] Cpanel Restart Service | Shell - Code Explorer | yomemimo.com
Question : cpanel restart service

Answered by : jason-m-potter

/scripts/restartsrv <SERVICE> [ACTION] [OPTIONS]
# The default action is to restart the [SERVICE] service.
# The script returns 0 on success, & a positive integer on an error.
# Note: Error output is displayed on STDERR.
# [ACTIONS]:
# --help Display this help message.
# --restart Restart the service (soft restart, if available).
# --hard Perform a hard restart (skip the soft restart).
# --graceful Attempt a graceful restart of the service.
# --reload Reload the service, if the service supports this action.
# --stop Stop the service.
# --status Return the current service status via the exit code.
# [OPTIONS]:
# --notconfigured-ok unconfigured service return a non-fatal code.

Source : https://docs.cpanel.net/whm/scripts/the-restartsrv-script/ | Last Update : Tue, 11 Oct 22

Answers related to cpanel restart service

Code Explorer Popular Question For Shell