aboutsummaryrefslogtreecommitdiff
path: root/docker/ptp/extend_start.sh
diff options
context:
space:
mode:
authorZenghui Shi <zshi@redhat.com>2017-11-09 19:32:46 +0800
committerZenghui Shi <zshi@redhat.com>2017-11-09 19:41:38 +0800
commit725c14c43e6d8bd23d4d1f8fbb756ee92f9cbd75 (patch)
treecab5a196a38b8ee8c0473236f4793652097bb507 /docker/ptp/extend_start.sh
parentec028fc3989562bd0ac7d0c1d2c388fd3246b8b7 (diff)
downloadkolla-725c14c43e6d8bd23d4d1f8fbb756ee92f9cbd75.tar.gz
kolla-725c14c43e6d8bd23d4d1f8fbb756ee92f9cbd75.zip
Add ptp service docker image
Change-Id: I317ae1fe3bb33cda4e5b947e5418f9419373d7c5 Partial-implements: blueprint ptp-service
Diffstat (limited to 'docker/ptp/extend_start.sh')
-rw-r--r--docker/ptp/extend_start.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/docker/ptp/extend_start.sh b/docker/ptp/extend_start.sh
new file mode 100644
index 000000000..09203991d
--- /dev/null
+++ b/docker/ptp/extend_start.sh
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+rm -f /var/run/ptp.pid
+
+PTP_LOG_DIR="/var/log/kolla/ptp"
+if [[ ! -d "${PTP_LOG_DIR}" ]]; then
+ mkdir -p ${PTP_LOG_DIR}
+fi
+
+if [[ $(stat -c %a ${PTP_LOG_DIR}) != "755" ]]; then
+ chmod 755 ${PTP_LOG_DIR}
+fi