[asterisk-dev] upstart script [was: Re: [svn-commits] seanbright: trunk r200428 - in /trunk/contrib/upstart: ./ asterisk.upstart-0.3.9]

Sean Bright sean.bright at gmail.com
Mon Jun 15 09:39:29 CDT 2009


Tzafrir Cohen wrote:
>>>> +post-stop script
>>>> +  # Might as well clean up after ourselves, too.
>>>> +  rm -rf /var/run/asterisk
>>> What happens if you have more than one Asterisk running?
>> Feel free to code up something to address these and I will commit them.
>>  Thanks for the review.
> 
> Why do you need that command? rm -rf is certainly bad. You probably
> meant 'rm -f /var/run/asterisk/*' . But why is it needed? Is there any
> file in /var/run/asterisk that Asterisk does not run over at startup
> if not deleted (e.g. in the event of a kill -9) ?

As I said in my commit message, this needs to be generalized.  It works well in
my installation.  As I said, I have no problems committing a patch should you or
anyone else want to supply one.

Thanks,
-- 
Sean Bright
sean.bright at gmail.com



More information about the asterisk-dev mailing list