Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | # LSB initscript functions, as defined in the LSB Spec 1.1.0 |
| 4 | # |
| 5 | # Lawrence Lim <llim@core.com> - Tue, 26 June 2007 |
| 6 | # Updated to the latest LSB 3.1 spec |
| 7 | # http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic_lines.txt |
| 8 | |
| 9 | start_daemon () { |
| 10 | /etc/core-lsb/lsb_start_daemon "$@" |
| 11 | } |
| 12 | |
| 13 | killproc () { |
| 14 | /etc/core-lsb/lsb_killproc "$@" |
| 15 | } |
| 16 | |
| 17 | pidofproc () { |
| 18 | /etc/core-lsb/lsb_pidofproc "$@" |
| 19 | } |
| 20 | |
| 21 | log_success_msg () { |
| 22 | /etc/core-lsb/lsb_log_message success "$@" |
| 23 | } |
| 24 | |
| 25 | log_failure_msg () { |
| 26 | /etc/core-lsb/lsb_log_message failure "$@" |
| 27 | } |
| 28 | |
| 29 | log_warning_msg () { |
| 30 | /etc/core-lsb/lsb_log_message warning "$@" |
| 31 | } |
| 32 | |
| 33 | # int log_begin_message (char *message) |
| 34 | log_begin_msg () { |
| 35 | if [ -z "$1" ]; then |
| 36 | return 1 |
| 37 | fi |
| 38 | echo " * $@" |
| 39 | } |
| 40 | |
| 41 | |
| 42 | log_end_msg () { |
| 43 | /etc/core-lsb/lsb_log_message end "$@" |
| 44 | } |