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-nova | |
| 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-nova')
3 files changed, 3 insertions, 3 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova-all b/meta-openstack/recipes-devtools/python/python-nova/nova-all index c1d537d..914b714 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova-all +++ b/meta-openstack/recipes-devtools/python/python-nova/nova-all | |||
| @@ -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 |
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth b/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth index 99f04d5..9a74107 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth +++ b/meta-openstack/recipes-devtools/python/python-nova/nova-consoleauth | |||
| @@ -48,7 +48,7 @@ status() | |||
| 48 | { | 48 | { |
| 49 | pid=`cat $PIDFILE 2>/dev/null` | 49 | pid=`cat $PIDFILE 2>/dev/null` |
| 50 | if [ -n "$pid" ]; then | 50 | if [ -n "$pid" ]; then |
| 51 | if ps -p $pid >&- ; then | 51 | if ps -p $pid > /dev/null 2>&1 ; then |
| 52 | echo "$DESC is running" | 52 | echo "$DESC is running" |
| 53 | return | 53 | return |
| 54 | fi | 54 | fi |
diff --git a/meta-openstack/recipes-devtools/python/python-nova/nova.init b/meta-openstack/recipes-devtools/python/python-nova/nova.init index 46b28d3..607b6de 100644 --- a/meta-openstack/recipes-devtools/python/python-nova/nova.init +++ b/meta-openstack/recipes-devtools/python/python-nova/nova.init | |||
| @@ -78,7 +78,7 @@ status() | |||
| 78 | { | 78 | { |
| 79 | pid=`cat $PIDFILE 2>/dev/null` | 79 | pid=`cat $PIDFILE 2>/dev/null` |
| 80 | if [ -n "$pid" ]; then | 80 | if [ -n "$pid" ]; then |
| 81 | if ps -p $pid >&- ; then | 81 | if ps -p $pid > /dev/null 2>&1 ; then |
| 82 | echo "$DESC is running" | 82 | echo "$DESC is running" |
| 83 | return | 83 | return |
| 84 | fi | 84 | fi |
