[PATCH v3 compass-ci 5/5] feat: container/ntp-server: start-server.sh

[What] start ntp-server and specify the log file. Signed-off-by: Wang Chenglong <18509160991@163.com> --- container/ntp-server/start-server.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 container/ntp-server/start-server.sh diff --git a/container/ntp-server/start-server.sh b/container/ntp-server/start-server.sh new file mode 100755 index 0000000..8f35f22 --- /dev/null +++ b/container/ntp-server/start-server.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# SPDX-License-Identifier: MulanPSL-2.0+ +# # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +/usr/sbin/ntpd -g -l /var/log/ntpstats/ntpd.log + +exec "$@" -- 2.23.0

On Thu, Oct 29, 2020 at 03:35:22PM +0800, Wang Chenglong wrote:
[What] start ntp-server and specify the log file.
Signed-off-by: Wang Chenglong <18509160991@163.com> --- container/ntp-server/start-server.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 container/ntp-server/start-server.sh
diff --git a/container/ntp-server/start-server.sh b/container/ntp-server/start-server.sh new file mode 100755 index 0000000..8f35f22 --- /dev/null +++ b/container/ntp-server/start-server.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# SPDX-License-Identifier: MulanPSL-2.0+ +# # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
Suggest to delete the redundant '#'. Thanks, Xijian
+ +/usr/sbin/ntpd -g -l /var/log/ntpstats/ntpd.log + +exec "$@" -- 2.23.0

On Thu, Oct 29, 2020 at 03:53:10PM +0800, Xu Xijian wrote:
On Thu, Oct 29, 2020 at 03:35:22PM +0800, Wang Chenglong wrote:
[What] start ntp-server and specify the log file.
Signed-off-by: Wang Chenglong <18509160991@163.com> --- container/ntp-server/start-server.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 container/ntp-server/start-server.sh
diff --git a/container/ntp-server/start-server.sh b/container/ntp-server/start-server.sh new file mode 100755 index 0000000..8f35f22 --- /dev/null +++ b/container/ntp-server/start-server.sh @@ -0,0 +1,7 @@ +#!/bin/sh +# SPDX-License-Identifier: MulanPSL-2.0+ +# # Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved.
Suggest to delete the redundant '#'.
Ok. i have fixed it. Thanks, Chenglong
Thanks, Xijian
+ +/usr/sbin/ntpd -g -l /var/log/ntpstats/ntpd.log + +exec "$@" -- 2.23.0
participants (2)
-
Wang Chenglong
-
Xu Xijian