summaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init
diff options
context:
space:
mode:
authorMark Asselstine <mark.asselstine@windriver.com>2015-11-11 21:50:27 -0500
committerBruce Ashfield <bruce.ashfield@windriver.com>2015-11-16 15:11:54 -0500
commit2883633858605df7bf50cc5ca68012291751d772 (patch)
tree0ec89422efb3c3afbf0005a7630682e7c0ecfe47 /meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init
parent90026c79465c9a3cb505211ab5fe6ff7a4db1b0e (diff)
downloadmeta-cloud-services-2883633858605df7bf50cc5ca68012291751d772.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-neutron/neutron-server.init')
-rw-r--r--meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init b/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init
index 0c78de6..77f8f01 100644
--- a/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init
+++ b/meta-openstack/recipes-devtools/python/python-neutron/neutron-server.init
@@ -63,7 +63,7 @@ status()
63{ 63{
64 pid=`cat $PIDFILE 2>/dev/null` 64 pid=`cat $PIDFILE 2>/dev/null`
65 if [ -n "$pid" ]; then 65 if [ -n "$pid" ]; then
66 if ps -p $pid >&- ; then 66 if ps -p $pid > /dev/null 2>&1 ; then
67 echo "$DESC is running" 67 echo "$DESC is running"
68 return 68 return
69 fi 69 fi