]>
Commit | Line | Data |
---|---|---|
1 | .Dd October 15, 2004 | |
2 | .Dt SERVICE 8 | |
3 | .Os Darwin | |
4 | .Sh NAME | |
5 | .Nm service | |
6 | .Sh SYNOPSIS | |
7 | .Nm | |
8 | .Ar service Ar command | |
9 | .Nm | |
10 | .Fl -list | |
11 | .Nm | |
12 | .Fl -test-if-configured-on Ar service | |
13 | .Nm | |
14 | .Fl -test-if-available Ar service | |
15 | .Sh DESCRIPTION | |
16 | .Nm | |
17 | is a simple script to abstract the management of services provided by the system. | |
18 | It can be used to start and stop services, as well as to determine the status of services. | |
19 | .Sh OPTIONS | |
20 | .Bl -tag -width indent | |
21 | .It Ar service Ar command | |
22 | Attempt to execute a given command for a given service. Currently, the available commands are 'start' and 'stop'. | |
23 | .It Fl -list | |
24 | List all available services. | |
25 | .It Fl -test-if-configured-on Ar service | |
26 | Exit with status 0 if the service is currently enabled. Otherwise, exit with status 1. | |
27 | .It Fl -test-if-available Ar service | |
28 | Exit with status 0 if the service's daemon exists on your system. Otherwise, exit with status 1. | |
29 | .El |