The service
utility is used to manage services on the Plesk server
through CLI. By using this utility, you can perform the following tasks:
- displaying a list of available services
- starting, stopping, or restarting a service
- querying the current running status of a service
- specifying the information to be included in the list of available
services and format its display parameters
Usage
service <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command displays detailed information about the dns
,
mail
, and tomcat
services as a table:
plesk bin service --list -include dns,mail,tomcat -format "nt%k,t%N,t%St%It%pn"
Commands
Command | Parameter | Description | Example |
---|---|---|---|
--start or -s |
<service_ name> |
Starts a service. |
To start the DNS service: plesk bin service --start dns or plesk bin service -s dns |
…