Bug#287025: asterisk -rx 'restart now' fails
Tzafrir Cohen
Tzafrir Cohen <tzafrir.cohen@xorcom.com>, 287025@bugs.debian.org
Tue Jul 5 00:04:08 UTC 2005
I looked again into this issue.
strace -f /etc/init.d/asterisk start
and in another terminal later: asterisk -rx 'restart now'
At least on my system asterisk is run with real-time priority. When I
try to run 'restart now' it eventually gets "permission denied" for
sched_setscheduler, prints "Unable to set high priority" to the standard
output and exists.
This is a substatial limitation. I don't see any easy way around it.
Unless that call is unnecessary because the asterisk process already has
those permissions.
Disabled realtime priority and repeated the experiment. Asterisk still
crashes. This time it gets denied when trying to run setgroups32, and
prints to the standard output "Unable to Initialize Supplamnetarry
[something]".
But is there a real reason for asterisk to re-setuid on restart? This
part could probably be skipped.
--
Tzafrir Cohen icq#16849755 +972-50-7952406
tzafrir.cohen@xorcom.com http://www.xorcom.com
More information about the Pkg-voip-maintainers
mailing list