fix: stop service at the begin install
This commit is contained in:
@@ -60,6 +60,14 @@ chmod +rx ${RPM_BUILD_ROOT}/usr/lib64/*
|
|||||||
#cd %{buildroot}/..
|
#cd %{buildroot}/..
|
||||||
#make
|
#make
|
||||||
|
|
||||||
|
%install
|
||||||
|
echo -n "Stopping OMC service ... "
|
||||||
|
systemctl stop restagent.service
|
||||||
|
systemctl stop crontask.service
|
||||||
|
systemctl stop sshsvc.service
|
||||||
|
systemctl stop captrace.service
|
||||||
|
echo "done"
|
||||||
|
|
||||||
# 安装完成后执行
|
# 安装完成后执行
|
||||||
%post
|
%post
|
||||||
OmcRootDir=/usr/local/omc
|
OmcRootDir=/usr/local/omc
|
||||||
@@ -135,13 +143,6 @@ if [ "$M_PARAM" = "install" -o "$M_PARAM" = "upgrade" ]; then
|
|||||||
fi
|
fi
|
||||||
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 ... "
|
echo -n "Starting OMC service ... "
|
||||||
systemctl start captrace.service
|
systemctl start captrace.service
|
||||||
systemctl start sshsvc.service
|
systemctl start sshsvc.service
|
||||||
|
|||||||
Reference in New Issue
Block a user