diff options
| author | Hui Kang <kangh@us.ibm.com> | 2016-06-26 23:45:33 -0400 |
|---|---|---|
| committer | Hui Kang <kangh@us.ibm.com> | 2016-06-26 23:45:33 -0400 |
| commit | 54919dc4984121fcbc1de8f4f7ace00c37981a35 (patch) | |
| tree | 315347dc4dbda8f4174b2d80d3ebe26d543be40c /docker/openvswitch/openvswitch-base/extend_start.sh | |
| parent | d87b4f63a2a4bd7017a94677e5310051689bb03d (diff) | |
| download | kolla-54919dc4984121fcbc1de8f4f7ace00c37981a35.tar.gz kolla-54919dc4984121fcbc1de8f4f7ace00c37981a35.zip | |
Enable openvswitch container logs in host volumes
Allow heka container to pick up the openvswitch logs like other
services
Change-Id: I396ae9419540070c6ab01b8f62607ab46b1f08aa
closes-Bug: #1573199
Diffstat (limited to 'docker/openvswitch/openvswitch-base/extend_start.sh')
| -rw-r--r-- | docker/openvswitch/openvswitch-base/extend_start.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/openvswitch/openvswitch-base/extend_start.sh b/docker/openvswitch/openvswitch-base/extend_start.sh new file mode 100644 index 000000000..67fc38537 --- /dev/null +++ b/docker/openvswitch/openvswitch-base/extend_start.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [[ ! -d "/var/log/kolla/openvswitch" ]]; then + mkdir -p /var/log/kolla/openvswitch +fi +if [[ $(stat -c %a /var/log/kolla/openvswitch) != "755" ]]; then + chmod 755 /var/log/kolla/openvswitch +fi + +source /usr/local/bin/kolla_openvswitch_extend_start |
