On Thu, Oct 29, 2020 at 06:04:43PM +0800, Liu Yinsi wrote:
+# 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 "$@"
why add this file, if want execute shell command in ntp-server, can write in Dockerfile, use like this
CMD ./start-server.sh
CMD [ "ntpd -g -l /var/log/ntpstats/ntpd/log" ] is ok?
I have tried. But i think this way is better and easier.
Thanks, Yinsi