1service(8)                  System Manager's Manual                 service(8)
2
3
4

NAME

6       service - run a System V init script
7
8

SYNOPSIS

10       service SCRIPT COMMAND [OPTIONS]
11
12       service --status-all
13
14       service --help | -h | --version
15
16

DESCRIPTION

18       service  runs  a  System V init script in as predictable environment as
19       possible, removing most environment variables and with current  working
20       directory set to /.
21
22       The  SCRIPT  parameter  specifies  a  System  V init script, located in
23       /etc/init.d/SCRIPT.  The supported values  of  COMMAND  depend  on  the
24       invoked  script,  service  passes  COMMAND  and  OPTIONS it to the init
25       script unmodified.  All scripts should support at least the  start  and
26       stop  commands.   As  a special case, if COMMAND is --full-restart, the
27       script is run twice, first with the stop command, then with  the  start
28       command.
29
30       service --status-all runs all init scripts, in alphabetical order, with
31       the status command.
32
33       If the init script file does not exist, the script tries to use  legacy
34       actions.   If  there  is no suitable legacy action found and COMMAND is
35       one of actions specified in LSB Core Specification, input is redirected
36       to the systemctl.  Otherwise the command fails with return code 2.
37
38

FILES

40       /etc/init.d
41              The directory containing System V init scripts.
42
43

ENVIRONMENT

45       LANG, TERM
46              The only environment variables passed to the init scripts.
47
48

SEE ALSO

50       chkconfig(8), ntsysv(8), systemd(1), systemctl(8), systemd.service(5)
51
52
53
54                                   Jan 2006                         service(8)
Impressum