diff options
Diffstat (limited to 'meta/recipes-core/initscripts')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/functions | 15 | ||||
-rw-r--r-- | meta/recipes-core/initscripts/initscripts_1.0.bb | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/functions b/meta/recipes-core/initscripts/initscripts-1.0/functions index dd7da2b1c3..944e3a59b0 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/functions +++ b/meta/recipes-core/initscripts/initscripts-1.0/functions | |||
@@ -42,3 +42,18 @@ machine_id() { # return the machine ID | |||
42 | killproc() { # kill the named process(es) | 42 | killproc() { # kill the named process(es) |
43 | pid=`pidofproc $1` && kill $pid | 43 | pid=`pidofproc $1` && kill $pid |
44 | } | 44 | } |
45 | |||
46 | status() { | ||
47 | local pid | ||
48 | if [ "$#" = 0 ]; then | ||
49 | echo "Usage: status {program}" | ||
50 | return 1 | ||
51 | fi | ||
52 | pid=`pidofproc $1` | ||
53 | if [ -n "$pid" ]; then | ||
54 | echo "$1 (pid $pid) is running..." | ||
55 | else | ||
56 | echo "$1 is stopped" | ||
57 | fi | ||
58 | return 3 | ||
59 | } | ||
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index 68f80346ef..649e18269e 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb | |||
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip | |||
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
6 | PR = "r139" | 6 | PR = "r140" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | 8 | INHIBIT_DEFAULT_DEPS = "1" |
9 | 9 | ||