Safe Asterisk Error

I am not getting Safe_Asterisk to work. Get following error:

/usr/sbin/safe_asterisk: 172: Syntax error: Bad fd number

Copied file below
line 1 #!/bin/sh
line 2 # vim:textwidth=80:tabstop=4:shiftwidth=4:smartindent:autoindent

line 169 done
line 170 }
line 171
line 172 run_asterisk &

Ubunutu 2.6.32-21-server, Asterisk 1.8.2, please suggest.

Please suggest…

Thanks in advance

i got safe_asterisk running by making one change in the script. The first line of script is #!/bin/sh i changed it to #!/bin/bash after searching google. Now i can run asterisk with safe_asterisk.

A lot of software is likely to break if /bin/sh is not defined. Often it is a symbolic link to /bin/bash, on Linux.