diff options
Diffstat (limited to 'meta/recipes-extended/lsb/lsb/init-functions')
-rwxr-xr-x | meta/recipes-extended/lsb/lsb/init-functions | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-extended/lsb/lsb/init-functions b/meta/recipes-extended/lsb/lsb/init-functions new file mode 100755 index 0000000000..bf424dde1c --- /dev/null +++ b/meta/recipes-extended/lsb/lsb/init-functions | |||
@@ -0,0 +1,32 @@ | |||
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 | |||