Checkpid: Check if PID already exists, if one exists, return 0 (by viewing the/proc directory)
Daemon: Start Service
Killproc: Kill a process
Pidfileofproc: Finding the PID of a process
Pidofproc: Ditto, use the PIDOF command
Status: Returns the state of a service
Echo_success,echo_failure,echo_passed,echo_warning output Each kind of information separately
Success,failure,passed,warning logs separately and invokes the appropriate method
Action: Prints a message and executes the given command, which is invoked according to the result of the command execution
STRSTR: Determine if 1 contains 1 whether it contains 2
Confirm: Show "Start Service $ (Y) es/(N) o/(C) ontinue?" [Y] "and return the selection result
Perform:. /etc/rc.d/init.d/functions
Error: Can ' t open/etc/rc.d/init.d/functions
Solution: Ln-s/lib/lsb/init-functions/etc/rc.d/init.d/functions
Error: Daemon:fatal:refusing to execute unsafe program:/usr/bin/java (/opt are Group and world writable)
Solution: Chmod-r 755/opt
Reference Documentation:
Http://www.cnblogs.com/image-eye/archive/2011/10/26/2220405.html