Closed jxmx closed 3 months ago
Why no asterisk-start?, allmon3-start?
Is there any impact to astup.sh, astdn.sh, and astres.sh? and are we duplicating what we already have?
ASL3 man has a copy/paste issue with script names (3 asterisks, 1 allmon3)
I guess allmon3-start might make sense. What would be the point of asterisk-start?
The legacy compact scripts I hope go away. But they also have console output and stuff.
What would be the point of asterisk-start?
Symmetry ... and if we were to get rid of astup/dn/res...
PR notes
systemctl stop asterisk systemctl restart asterisk systemctl stop allmon3 systemctl restart asterisk. <-----
Is the "shutdown" command included?
Removing the astXX.sh helper scripts was mentioned in one of the comments. Let's not rehash that debate here.
Fear not, I am not deleting them :)
This is a PolicyKit ruleset to permit the asterisk user to execute a limited number of actions without the need for sudo or prompting for a password. Those are:
systemctl stop asterisk
systemctl restart asterisk
systemctl stop allmon3
systemctl restart asterisk
/usr/sbin/poweroff
/usr/sbin/reboot
Using a combination of wrapper scripts and appropriate function configuration, Asterisk can restart itself, Allmon3, shutdown the system, or reboot the system. Use of the wrapper scripts for
systemctl
commands is essential for a clean execution of the scripts under the polkit rules. The provided wrappers are:/etc/asterisk/scripts/allmon3-restart
/etc/asterisk/scripts/allmon3-stop
/etc/asterisk/scripts/asterisk-restart
/etc/asterisk/scripts/asterisk-stop