代码拉取完成,页面将自动刷新
同步操作将从 anolis/ssar 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
default:
make -C conf
make -C ssar
make -C sresar
clean:
make -C conf clean
make -C ssar clean
make -C sresar clean
install:
install -d /etc/ssar/
install conf/ssar.conf /etc/ssar/
install conf/sys.conf /etc/ssar/
install -d /usr/src/os_health/ssar/
install conf/sresar.service /usr/src/os_health/ssar/
install -d /usr/bin/
install ssar/ssar /usr/bin/ssar
install ssar/ssar+.py /usr/bin/ssar+
install ssar/tsar2.py /usr/bin/tsar2
install sresar/sresar /usr/bin/sresar
install -d /run/lock/os_health/
touch /run/lock/os_health/sresar.pid
cp -f /usr/src/os_health/ssar/sresar.service /etc/systemd/system/sresar.service
chown root:root /etc/systemd/system/sresar.service
systemctl daemon-reload
if [ systemctl is-enabled sresar.service ]; then \
systemctl disable sresar.service; \
fi
systemctl enable sresar.service
if systemctl is-active sresar.service; then \
systemctl stop sresar.service; \
fi
systemctl start sresar.service
uninstall:
systemctl stop sresar.service
systemctl disable sresar.service
rm -f /etc/systemd/system/sresar.service
systemctl daemon-reload
systemctl reset-failed
if [[ -e "/var/log/sre_proc/" ]];then \
for i2 in $(ls "/var/log/sre_proc/"); do \
rm -fr "/var/log/sre_proc/"${i2}; \
sleep 0.01; \
done; \
rm -fr "/var/log/sre_proc/"; \
fi
customized_work_path=$(cat /etc/ssar/ssar.conf | grep work_path | awk -F= '{print $2}')
if [[ -e ${customized_work_path}"/sre_proc/" ]];then \
for i3 in $(ls ${customized_work_path}"/sre_proc/"); do \
rm -fr ${customized_work_path}"/sre_proc/"${i3}; \
sleep 0.01; \
done; \
rm -fr ${customized_work_path}"/sre_proc/"; \
fi
rm -fr /etc/ssar/
rm -fr /usr/src/os_health/ssar/
rm -f /usr/bin/ssar
rm -f /usr/bin/ssar+
rm -f /usr/bin/tsar2
rm -f /usr/bin/sresar
rm -fr /run/lock/os_health/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。