next up previous contents
Next: 2.3.1.4 Other scripts Up: 2.3.1 System 5 init Previous: 2.3.1.2 rc.sysinit   Contents

2.3.1.3 /etc/init.d/functions

  1. sets the umask
  2. sets up a default search path
  3. configures the screen width
  4. reads (sources) /etc/sysconfig/init which may be specific to Red Hat
  5. checkpid() function to get the pid (process id) of a program
  6. daemon() functions to start a program
  7. killproc() function to stop a program
  8. pidfileofproc() function to find the pid of a program
  9. status() function to check whether a program is running or not
  10. echo_success() function for reporting the successful start of a program during bootup
  11. echo_failure() function for reporting the failure of the starting of a program
  12. echo_passed() function to report the passing of a system test
  13. echo_warning() function to report a warning
  14. success() function logs that something succeeded, calls echo_success
  15. failure() function logs the failure of some process, calls echo_failure
  16. passed() function logs that something passed, possibly with errors calls echo_passed()
  17. warning() function logs a warning, calls echo_warning()
  18. action() run some action and log its output
  19. confirm() function used during interactive startup to verify that you want service to start


next up previous contents
Next: 2.3.1.4 Other scripts Up: 2.3.1 System 5 init Previous: 2.3.1.2 rc.sysinit   Contents