/[baselayout]/trunk/sbin/rc-help.sh
Gentoo

Diff of /trunk/sbin/rc-help.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 344 Revision 345
23 23
24echo 24echo
25echo -e "${GREEN}Gentoo Linux RC-Scripts; ${BLUE}http://www.gentoo.org/${OFF}" 25echo -e "${GREEN}Gentoo Linux RC-Scripts; ${BLUE}http://www.gentoo.org/${OFF}"
26echo -e " Copyright 2001-2003 Gentoo Technologies, Inc.; Distributed under the GPL" 26echo -e " Copyright 2001-2003 Gentoo Technologies, Inc.; Distributed under the GPL"
27echo 27echo
28echo -e "Usage: ${CYAN}${myservice}${OFF} [ ${GREEN}options${OFF} ]" 28echo -e "Usage: ${CYAN}${myservice}${OFF} < ${GREEN}flags${OFF} > [ ${GREEN}options${OFF} ]"
29echo 29echo
30echo -e "${CYAN}Options:${OFF}" 30echo -e "${CYAN}Options:${OFF}"
31echo -e " ${GREEN}start${OFF}" 31echo -e " ${GREEN}start${OFF}"
32cat <<EOHELP 32cat <<EOHELP
33 Start service, as well as the services it depends on (if not already 33 Start service, as well as the services it depends on (if not already
67echo -e " ${GREEN}status${OFF}" 67echo -e " ${GREEN}status${OFF}"
68cat <<EOHELP 68cat <<EOHELP
69 Prints "status: started" if the service is running, else it 69 Prints "status: started" if the service is running, else it
70 prints "status: stopped". 70 prints "status: stopped".
71 71
72 Note that if the '--quiet' flag is given, it will return true if the
73 service is running, else false.
74
72EOHELP 75EOHELP
73echo -e " ${GREEN}ineed|iuse${OFF}" 76echo -e " ${GREEN}ineed|iuse${OFF}"
74cat <<EOHELP 77cat <<EOHELP
75 List the services this one depends on. Consult the section about 78 List the services this one depends on. Consult the section about
76 dependencies for more info on the different types of dependencies. 79 dependencies for more info on the different types of dependencies.
84EOHELP 87EOHELP
85echo -e " ${GREEN}broken${OFF}" 88echo -e " ${GREEN}broken${OFF}"
86cat <<EOHELP 89cat <<EOHELP
87 List the missing or broken dependencies of type 'need' this service 90 List the missing or broken dependencies of type 'need' this service
88 depends on. 91 depends on.
92
93EOHELP
94echo -e "${CYAN}Flags:${OFF}"
95echo -e " ${GREEN}--quiet${OFF}"
96cat <<EOHELP
97 Suppress output to stdout, except if:
98
99 1) It is a warning, then output to stdout
100 2) It is an error, then output to stderr
101
102EOHELP
103echo -e " ${GREEN}--nocolor${OFF}"
104cat <<EOHELP
105 Suppress the use of colors.
89 106
90EOHELP 107EOHELP
91echo -e "${CYAN}Dependencies:${OFF}" 108echo -e "${CYAN}Dependencies:${OFF}"
92cat <<EOHELP 109cat <<EOHELP
93 This is the heart of the Gentoo RC-Scripts, as it determines the order 110 This is the heart of the Gentoo RC-Scripts, as it determines the order

Legend:
Removed from v.344  
changed lines
  Added in v.345

  ViewVC Help
Powered by ViewVC 1.1.20