Linux Geek Net>
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
sets the umask
sets up a default search path
configures the screen width
reads (sources) /etc/sysconfig/init which may be specific to Red Hat
checkpid() function to get the pid (process id) of a program
daemon() functions to start a program
killproc() function to stop a program
pidfileofproc() function to find the pid of a program
status() function to check whether a program is running or not
echo_success() function for reporting the successful start of a program during bootup
echo_failure() function for reporting the failure of the starting of a program
echo_passed() function to report the passing of a system test
echo_warning() function to report a warning
success() function logs that something succeeded, calls echo_success
failure() function logs the failure of some process, calls echo_failure
passed() function logs that something passed, possibly with errors calls echo_passed()
warning() function logs a warning, calls echo_warning()
action() run some action and log its output
confirm() function used during interactive startup to verify that you want service to start
Next:
2.3.1.4 Other scripts
Up:
2.3.1 System 5 init
Previous:
2.3.1.2 rc.sysinit
 
Contents