##
## 10-ejabberdmoodle
## for ejabberd-moodle interaction
##

# allow the apache user to invoke ejabberdctl and start/stop/condrestart 
Defaults:apache !requiretty
Cmnd_Alias EJABBERDCTL = /usr/sbin/ejabberdctl 
Cmnd_Alias EJABBERDINIT = /etc/init.d/ejabberd start , /etc/init.d/ejabberd stop , /etc/init.d/ejabberd condrestart

apache ALL = (ejabberd) NOPASSWD: EJABBERDCTL
apache ALL = (root) NOPASSWD: EJABBERDINIT
