From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: initscripts package includes /sbin/service, but there is no manpage for this script. Version-Release number of selected component (if applicable): initscripts-6.67-1 How reproducible: Always Steps to Reproduce: 1.man service 2. 3. Actual Results: No manual entry for service Expected Results: NAME service -- run an /etc/init.d script with clean environment SYNOPSIS /sbin/service --help | -h | --h | -V | --version /sbin/service --status-all /sbin/service service_name [ command [ options... ] | --full-restart ] DESCRIPTION /sbin/service foo cmd is about the same as running /etc/init.d/foo cmd Or more precisely, it is the same as cd /etc/init.d/ env -i LANG=$LANG /etc/init.d/foo cmd which empties the environment except for the LANG variable and runs the 'foo' script with working directory /etc/init.d/ and specified argument(s). /sbin/service foo --full-restart is the same as cd /etc/init.d/ env -i LANG=$LANG /etc/init.d/foo stop env -i LANG=$LANG /etc/init.d/foo start /sbin/service --status-all invokes all of the scripts in /etc/init.d/ with the 'status' command, except for those which are obviously not suitable: scripts with filenames functions, halt, killall, single, linuxconf, kudzu, and any scripts with filenames ending in rpmorig, rpmnew, rpmsave, ~, or .orig. SEE ALSO serviceconf(1), ntsysv(8), chkconfig(8) BUGS if the OPTIONS environment variable is defined, then service passes it to the init script ahead of the specified arguments. The USAGE message should read Usage: service --help | -h | -V | --version | --status-all | [ service_name [ command [ options... ] | --full-restart ] ] instead of Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ] Additional info:
additional bug in script: should use env -i LANG="$LANG" ... BUGS if the LANG environment variable contains whitespace, then /sbin/service will malfunction. # LANG="C echo" # service ntpd status /etc/init.d/ntpd status # LANG=C # service ntpd status ntpd (pid 1741) is running...
*** This bug has been marked as a duplicate of 44857 ***