On Fri, Dec 17, 2010 at 04:35:33PM +0100, Julien Cristau wrote: > > @@ -45,6 +45,9 @@ > > # Tightened permissions for the config file > > chmod -R ug=rw,o=,ug+X /etc/icecast2/icecast.xml > > > > +# avoid to fail on invoke-rc.d icecast2 start when upgrading see Bug#605507 > > +sleep 3 > > + > > What is this supposed to achieve?
When upgrading icecast2, stop (in prerm) and start (in postinst) process.
In some case, icecast2 gets signal and stops after a while.
If icecast2 process still exists, start fails.
So it waits for process really stopping.
Old icecast2's init does not have "--retry TERM/5/0/30" option,
so I put "sleep 3" in postinst for upgrading icecast2.
--
Regards,
dai
GPG Fingerprint = 0B29 D88E 42E6 B765 B8D8 EA50 7839 619D D439 668E
signature.asc
Description: Digital signature

