Skip to content

Commit

Permalink
Release Version 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JACK-THINK committed Aug 5, 2018
1 parent 30eb276 commit bb32dbb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
9 changes: 9 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# 更新日志

## 版本8.1(2018-08-05)

#### 新增
1. 新增Monit配置文件:ntpd
#### 变更
1.
#### 删除
1.

## 版本8.0(2018-07-27)

#### 新增
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ then
# 备份文件/opt/etc/profile至/opt/etc/profile.bak和${PRIVATE_ETC}/profile.bak
cp /opt/etc/profile ${PRIVATE_ETC}/profile.bak
cp /opt/etc/profile /opt/etc/profile.bak
#
#
logger -st "($(basename $0))" $$ "***** ${SERVICE_FUNCTION} HAS BEEN COMPLETE *****"
#
else
Expand Down
8 changes: 4 additions & 4 deletions script_bootloader/usr/monit/bin/monit_install
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ then
# 配置monit
cp /opt/etc/init.d/S99monit ${PRIVATE_ETC}/S99monit.bak
sed -i '/^ARGS/s/^/#/' /opt/etc/init.d/S99monit
sed -i '/^#ARGS/ a\ARGS="-c /opt/etc/monitrc"' /opt/etc/init.d/S99monit
sed -i '/^#ARGS/ a\ARGS="-c /opt/etc/monitrc"' /opt/etc/init.d/S99monit
cp /opt/etc/monitrc /opt/etc/monitrc.bak
cp /opt/etc/monitrc ${PRIVATE_ETC}/monitrc.bak
rm -f /opt/etc/monitrc
cp ${PRIVATE_ETC}/monitrc /opt/etc/
cp -r ${PRIVATE_ETC}/monit.d/ /opt/etc/
chmod 700 /opt/etc/monitrc
chmod 700 /opt/etc/monit.d/*
#
chmod 600 /opt/etc/monitrc
chmod 600 /opt/etc/monit.d/*
#
logger -st "($(basename $0))" $$ "***** ${SERVICE_FUNCTION} HAS BEEN COMPLETE *****"
#
else
Expand Down
4 changes: 4 additions & 0 deletions script_bootloader/usr/monit/etc/monit.d/ntpd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
check process ntpd with pidfile '/var/run/ntpd.pid'
start program = "/opt/script_bootloader/usr/ntpd/bin/ntpd_enable.service"
stop program = "/bin/sh -c 'kill -15 $(cat /var/run/ntpd.pid)'"
if does not exist then restart

0 comments on commit bb32dbb

Please # to comment.