FS#18823 - [icecast] Init Script Lag Too Short for Restart

Attached to Project: Arch Linux
Opened by James Oakley (electron) - Wednesday, 24 March 2010, 15:36 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 12 November 2010, 15:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
/etc/rc.d/icecast restart fails frequently. If icecast is running, /etc/rc.d/icecast restart will report success on stopping the server but FAIL on starting it. If icecast is not running, starting will succeed. /etc/rc.d/icecast stop and /etc/rc.d/icecast start both work correctly when run manually by themselves. I believe the reason that restart does not work is that the lag is too short in the initscript for icecast to finishing shutting itself down. changing the line
sleep 1
to
sleep 2
solves the problem for me. Obviously this is somewhat machine dependent as the exact time taken to shut down will vary by speed of machine. and possible other factors.

Additional info:
* package version(s)


Steps to reproduce:
/etc/rc.d/icecast restart
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 12 November 2010, 15:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  icecast 2.3.2-4
Comment by Jan de Groot (JGC) - Thursday, 25 March 2010, 15:09 GMT
Sleeping with a fixed time delay is not really the solution I think. Bug 18818 is another example of this.

Loading...