diff options
author | Mark Asselstine <mark.asselstine@windriver.com> | 2015-11-11 21:50:27 -0500 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2015-11-16 15:11:44 -0500 |
commit | d0206f9f16905937397f27fb8c18a46331d13056 (patch) | |
tree | cf4a620a5862e3b982879e91d6115c0a9f1b39d2 /meta-openstack/recipes-devtools/python/python-ceilometer | |
parent | 7e7a276184912dbd5f9eca81cdc76875a64b1b13 (diff) | |
download | meta-cloud-services-d0206f9f16905937397f27fb8c18a46331d13056.tar.gz |
init: no need to close (non-existing) ps file descriptors
Attempting to get the status of various daemons which are part of the
compute image results in an error:
ps: write error: Bad file descriptor
Switch to using the more standard io redirection techniques to avoid
this error.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-ceilometer')
-rw-r--r-- | meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init b/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init index ba0f426..80fdff5 100644 --- a/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init +++ b/meta-openstack/recipes-devtools/python/python-ceilometer/ceilometer.init | |||
@@ -62,7 +62,7 @@ status() | |||
62 | { | 62 | { |
63 | pid=`cat $PIDFILE 2>/dev/null` | 63 | pid=`cat $PIDFILE 2>/dev/null` |
64 | if [ -n "$pid" ]; then | 64 | if [ -n "$pid" ]; then |
65 | if ps -p $pid >&- ; then | 65 | if ps -p $pid > /dev/null 2>&1; then |
66 | echo "$DESC is running" | 66 | echo "$DESC is running" |
67 | return | 67 | return |
68 | fi | 68 | fi |