[Bug 627490] New: Asterisk startup script fails to correctly test if its running
http://bugzilla.novell.com/show_bug.cgi?id=627490 http://bugzilla.novell.com/show_bug.cgi?id=627490#c0 Summary: Asterisk startup script fails to correctly test if its running Classification: openSUSE Product: openSUSE.org Version: unspecified Platform: i586 OS/Version: openSUSE 11.3 Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: novell@vertone.co.uk QAContact: adrian@novell.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.1.11) Gecko/20100714 SUSE/3.5.11-0.1.1 Firefox/3.5.11 The start/stop script for asterisk (downloaded from http://download.opensuse.org/repositories/network:/telephony:/asterisk/) fails to correctly test if asterisk is already running. In the start() section of the script /etc/init.d/asterisk it checks to see if asterisk is running by executing the following command: /usr/sbin/asterisk -rx 'core show version' and extracts the first 8 characters from the output and compares it to the word "Asterisk". The problem is that asterisk colorizes its display so the first couple of characters are unseen control codes and this check will therefore fail when asterisk is already running. This can be fixed by changing the command to: /usr/sbin/asterisk -nrx 'core show version' (note the addition of the 'n' flag). This will stop asterisk from outputting control codes to colour the display and the script will therfore correctly test to see if it is running. Reproducible: Always Steps to Reproduce: 1./etc/init.d/asterisk start 2./etc/init.d/asterisk start 3. Actual Results: # /etc/init.d/asterisk start Starting asterisk: # /etc/init.d/asterisk start Starting asterisk: Asterisk ended with exit status 1 Asterisk died with code 1. Automatically restarting Asterisk. mpg123: no process found (repeats continuously) Expected Results: # /etc/init.d/asterisk start Starting asterisk: # /etc/init.d/asterisk start Asterisk is already running. /etc/init.d/asterisk will exit now. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=627490 http://bugzilla.novell.com/show_bug.cgi?id=627490#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |adrian@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=627490 https://bugzilla.novell.com/show_bug.cgi?id=627490#c Adrian Schröter <adrian@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|BuildService |3rd party software AssignedTo|adrian@suse.com |opensuse-communityscreening | |@forge.provo.novell.com QAContact|adrian@suse.com |opensuse-communityscreening | |@forge.provo.novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com