[asterisk-users] ASTSBINDIR not being picked up by safe_asterisk
Mark Hulber
asterisk.admin at hulber.com
Tue Jan 26 16:16:55 CST 2010
Great, do you know of any other files outside of
/usr/lib/asterisk/modules that get recreated? I also place
rc.redhat.asterisk as "asterisk" in /etc/rc.d/init.d I don't see that
safe_asterisk_restart gets placed anywhere. It looks like astgenkey and
autosupport both get written over.
On 1/26/2010 11:15 AM, Tilghman Lesher wrote:
> On Tuesday 26 January 2010 10:08:39 Mark Hulber wrote:
>
>> On 1/25/2010 7:06 PM, Tilghman Lesher wrote:
>>
>>> On Monday 25 January 2010 08:52:45 Mark Hulber wrote:
>>>
>>>> Recently safe_asterisk is failing to pick up ASTSBINDIR. I've never had
>>>> this problem before and even when I move to back versions I have the
>>>> issue. I did upgrade safe_asterisk and the init.d scripts a version or
>>>> so ago but even when I try older ones I still have the problem. When I
>>>> hard code the location things seem to work. The problem that occurs is:
>>>>
>>>> cat: __ASTERISK_VARRUN_DIR__/asterisk.pid: No such file or directory
>>>> Automatically restarting Asterisk.
>>>>
>>>> But I think this is just a side effect of not finding asterisk in the
>>>> /usr/sbin directory in the first place.
>>>>
>>>> Anyone run across this or have an idea what might have happened? I
>>>> don't know if it was a Redhat update issue or some change in my
>>>> configuration or what.
>>>>
>>>> When I make the following change in safe_asterisk it works ok:
>>>>
>>>> ASTSBINDIR=__ASTERISK_SBIN_DIR__
>>>> ASTSBINDIR=/usr/sbin
>>>>
>>> Sounds like you manually copied the safe_asterisk script to /usr/sbin,
>>> instead of relying on 'make install' to do it for you. The install
>>> target does some extra processing of the script for you.
>>>
>> When I run "make install" I don't see this file getting overwritten. Do
>> I have to delete it to get this to happen?
>>
> Correct. It's only created if it doesn't already exist.
>
>
More information about the asterisk-users
mailing list