Closed tsawyer closed 5 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.
I see asterisk-safe running when asterisk is launched -p even as non-root. Jason added the -p to the -u asterisk debs.
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?
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?
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.
Do we need the -p switch? Some claim it's not recommended.