AllStarLink / asl3-asterisk

Building enviornment for the .deb packages of Asterisk LTS + ASL3/app_rpt.
GNU General Public License v2.0
2 stars 0 forks source link

asterisk -p in service #7

Closed tsawyer closed 5 months ago

tsawyer commented 10 months ago

Do we need the -p switch? Some claim it's not recommended.

encbar5 commented 9 months ago

According to the man page for asterisk, the -p flag can only take effect if running as root. Since we are not running as root, I assume it does nothing.

tsawyer commented 9 months ago

I see asterisk-safe running when asterisk is launched -p even as non-root. Jason added the -p to the -u asterisk debs.

encbar5 commented 9 months ago

I tested with and without -p. Because the system service uses root to launch the process, it must be taking effect before the -u takes effect. If I use -p then astcanary also runs, and the priority of asterisk is set to -11. Without -p, the priority of asterisk is normal, 20. I'm guessing the -p makes more sense on a dedicated or heavily loaded phone system? It probably doesn't make sense for my node, which only has connections in the single digits. Not sure this would be useful as a high performance version for large hub nodes or the like?

jxmx commented 9 months ago

Is -p actually causing problems for anyone? If not, and it helps in certain situations, why make it something that has to be setup and just leave it as-is. From reading about the option, it seems very well-behaved. Not sure why time/care should be spent on this?

tsawyer commented 9 months ago

One persons view http://lists.digium.com/pipermail/asterisk-users/2010-November/256457.html

jxmx commented 5 months ago

I've been running it the "default debian" way for months without an issue. I'm closing this. If someone feels really really strongly there's a reason to change it, re-open and let's discuss.