From ac25c16e7424f992b9cbbe0c24d507b462446f03 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Sat, 21 Sep 2024 11:46:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20deb=E5=AE=89=E8=A3=85=E5=AF=B9systemctl?= =?UTF-8?q?=20stop=E7=9A=84=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debbuild/22.04/DEBIAN/postinst | 14 ++++---------- debbuild/DEBIAN/postinst | 15 ++++----------- debbuild/DEBIAN/preinst | 10 ++++++++++ 3 files changed, 18 insertions(+), 21 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index e8d24b8..7a6f455 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -98,16 +98,10 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then exit 1 fi fi -# echo -n "Stopping OMC service ... " -# systemctl stop restagent.service -# systemctl stop crontask.service -# systemctl stop sshsvc.service -# systemctl stop captrace.service -# echo "done" echo -n "Starting OMC service ... " -systemctl start crontask.service -systemctl start sshsvc.service -systemctl start captrace.service -systemctl start restagent.service +systemctl restart crontask.service +systemctl restart sshsvc.service +systemctl restart captrace.service +systemctl restart restagent.service echo "done" diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 7bd065d..7393c16 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -99,16 +99,9 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then fi fi -echo -n "Stopping OMC service ... " -systemctl stop restagent.service -systemctl stop crontask.service -systemctl stop sshsvc.service -systemctl stop captrace.service -echo "done" - echo -n "Starting OMC service ... " -systemctl start crontask.service -systemctl start sshsvc.service -systemctl start captrace.service -systemctl start restagent.service +systemctl restart crontask.service +systemctl restart sshsvc.service +systemctl restart captrace.service +systemctl restart restagent.service echo "done" diff --git a/debbuild/DEBIAN/preinst b/debbuild/DEBIAN/preinst index fd4a182..9a2c870 100644 --- a/debbuild/DEBIAN/preinst +++ b/debbuild/DEBIAN/preinst @@ -1,8 +1,18 @@ # !/bin/bash FERootDir=/usr/local/omc/htdocs/front + +echo -n "Stopping OMC service ... " +systemctl stop restagent.service +systemctl stop crontask.service +systemctl stop sshsvc.service +systemctl stop captrace.service +echo "done" + # apt-get install zip # clear front-end old hash js files rm -rf ${FERootDir}/assets rm -rf ${FERootDir}/js rm -rf ${FERootDir}/index.*.js + +