Question about the SPEC file %pre section.

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

 



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

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux