我有一套软件包,我为此创建了一个管道。 由于知识产权的原因,我可以在此 past开整个管道,但这里是问题的根源:
%pre
/sbin/pidof program
if [ "$?" -eq "0" ]
then
/sbin/service program stop
fi
%post
/sbin/chkconfig program on
/sbin/service program start
%preun
/sbin/service program stop
/sbin/chkconfig program off
%postun
rm -rf /program_folder
Everytime I try to upgrade the package, it stops the program service, installs everything, starts the service, and then stops it again and deletes the folder...any ideas?