fix: postinst enhancement
This commit is contained in:
@@ -98,14 +98,16 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
echo -n "Stopping OMC service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop crontask.service
|
systemctl stop crontask.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
systemctl stop captrace.service
|
systemctl stop captrace.service
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
echo -n "Starting OMC service ... "
|
||||||
systemctl start crontask.service
|
systemctl start crontask.service
|
||||||
systemctl start sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl start captrace.service
|
systemctl start captrace.service
|
||||||
systemctl start restagent.service
|
systemctl start restagent.service
|
||||||
|
echo "done"
|
||||||
|
|||||||
@@ -99,13 +99,16 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo -n "Stopping OMC service ... "
|
||||||
systemctl stop restagent.service
|
systemctl stop restagent.service
|
||||||
systemctl stop crontask.service
|
systemctl stop crontask.service
|
||||||
systemctl stop sshsvc.service
|
systemctl stop sshsvc.service
|
||||||
systemctl stop captrace.service
|
systemctl stop captrace.service
|
||||||
|
echo "done"
|
||||||
|
|
||||||
|
echo -n "Starting OMC service ... "
|
||||||
systemctl start crontask.service
|
systemctl start crontask.service
|
||||||
systemctl start sshsvc.service
|
systemctl start sshsvc.service
|
||||||
systemctl start captrace.service
|
systemctl start captrace.service
|
||||||
systemctl start restagent.service
|
systemctl start restagent.service
|
||||||
|
echo "done"
|
||||||
|
|||||||
Reference in New Issue
Block a user