kolla/docker/ptp/extend_start.sh
Zenghui Shi 725c14c43e Add ptp service docker image
Change-Id: I317ae1fe3bb33cda4e5b947e5418f9419373d7c5
Partial-implements: blueprint ptp-service
2017-11-09 19:41:38 +08:00

13 lines
224 B
Bash

#!/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