Skip to content

Commit

Permalink
Merge "Add check to use /tmp/supervisord_<>.sock if present" into R3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 17, 2017
2 parents 23dd6cd + f36ac9a commit 207a582
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion common/control_files/barbican-api.initd.supervisord
Expand Up @@ -3,4 +3,8 @@
# chkconfig: 2345 99 01
# description: Juniper Network Virtualization API

supervisorctl -s unix:///tmp/supervisord_openstack.sock ${1} `basename ${0}`
if [ -e /tmp/supervisord_openstack.sock ]; then
supervisorctl -s unix:///tmp/supervisord_openstack.sock ${1} `basename ${0}`
else
supervisorctl -s unix:///var/run/supervisord_openstack.sock ${1} `basename ${0}`
fi
6 changes: 5 additions & 1 deletion common/control_files/barbican-worker.initd.supervisord
Expand Up @@ -3,4 +3,8 @@
# chkconfig: 2345 99 01
# description: Juniper Network Virtualization API

supervisorctl -s unix:///tmp/supervisord_openstack.sock ${1} `basename ${0}`
if [ -e /tmp/supervisord_openstack.sock ]; then
supervisorctl -s unix:///tmp/supervisord_openstack.sock ${1} `basename ${0}`
else
supervisorctl -s unix:///var/run/supervisord_openstack.sock ${1} `basename ${0}`
fi

0 comments on commit 207a582

Please sign in to comment.