From e7ea8dbf4a1ea0b5c7f11705434df0ea0b0cd9c1 Mon Sep 17 00:00:00 2001 From: simonzhangsz Date: Tue, 3 Sep 2024 18:46:50 +0800 Subject: [PATCH] fix: postinst enhancement --- debbuild/22.04/DEBIAN/postinst | 6 ++++-- debbuild/DEBIAN/postinst | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/debbuild/22.04/DEBIAN/postinst b/debbuild/22.04/DEBIAN/postinst index 7273d8c..a8f6c84 100644 --- a/debbuild/22.04/DEBIAN/postinst +++ b/debbuild/22.04/DEBIAN/postinst @@ -98,14 +98,16 @@ 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 - +echo "done" diff --git a/debbuild/DEBIAN/postinst b/debbuild/DEBIAN/postinst index 1948d87..7bd065d 100644 --- a/debbuild/DEBIAN/postinst +++ b/debbuild/DEBIAN/postinst @@ -99,13 +99,16 @@ 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 - +echo "done"