The service utility is used to manage services on the Parallels Plesk Panel server through CLI. By using this utility, you can perform the following tasks:
Usage
service <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command displays detailed information about the dns, mail, tomcat, and coldfusion services as a table:
# ./service --list -include dns,mail,tomcat,coldfusion -format "\n\t%k,\t%N,\t%S\t%I\t%p\n"
Commands
Command |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Starts a service. |
To start the DNS service: # ./service --start dns or # ./service -s dns |
|
|
Stops a service. |
To stop the DNS service: # ./service --stop dns or # ./service -p dns |
|
|
Restarts a service. |
To restart the DNS service: # ./service --restart dns or # ./service -r dns |
|
|
Displays the current status of a service. |
To view the current status of the DNS service: # ./service --status dns or # ./service -t dns |
|
|
Displays information about available services. Can be used with the |
To view the list of available services: # ./service --list or # ./service -l |
|
|
Displays help on the use of the utility. |
To view help on the use of the utility: # ./service --help or # ./service -h |
Options
Option |
Parameter |
Description |
Example |
|---|---|---|---|
|
|
Specifies the list of services to be included in the |
To view detailed information about DNS, Mail, Tomcat, and Coldfusion services only: # ./service -l -include dns,mail,tomcat,coldfusion -detail |
|
|
Specifies the list of services to be excluded from the |
To view detailed information about all services excluding DNS, Mail, Tomcat, and Coldfusion services: # ./service -l -exclude dns,mail,tomcat,coldfusion -detail |
|
|
Set the detailed format for the |
|
|
use |
Specifies the information to be included in the detailed output and the display parameters of the
Is set to |
To view detailed information about DNS, Mail, Tomcat, and Coldfusion services as a table: # ./service -l -include dns,mail,tomcat,coldfusion -format "\n\t%k,\t%N,\t%S\t%I\t%p\n" |