logo       

Bug#287025: asterisk -rx 'restart now' fails: msg#00165

linux.debian.packages.voip.devel

Subject: Bug#287025: asterisk -rx 'restart now' fails

On Tue, Jul 05, 2005 at 03:04:08AM +0300, Tzafrir Cohen wrote:

> But is there a real reason for asterisk to re-setuid on restart? This
> part could probably be skipped.

On restart asterisk simply re-execs itself. So it just needs to know
this was already done.

The following patch "remembers" (through an environment variable) that
asterisk has run setuid, and in that case won't try to do any operation
that require extra priviliges.

What do you think?

--
Tzafrir Cohen icq#16849755 +972-50-7952406
tzafrir.cohen@xxxxxxxxxx http://www.xorcom.com

Attachment: restart_noroot.dpatch
Description: Text document

_______________________________________________
Pkg-voip-maintainers mailing list
Pkg-voip-maintainers@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.alioth.debian.org/mailman/listinfo/pkg-voip-maintainers
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise