[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Question about the SPEC file %pre section.



Hi,
Didn't hear anything from my original post so i am at
the well again....

I am building a new squid rpm and I want the rpm to
gracefully (rather than just kill -9) shutdown the
current running squid daemon, when the admins do the
upgrade of squid using my new squid.rpm.  This is on a
redhat-el-3.4 box.

Will doing something in the %pre section like this
acheive what i want??
/sbin/service squid stop
sleep 300

I need this because Squid takes a long time, about
3minutes to clean up after itself before it shuts
down.

Thanks in advance folks!



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]