1 2 3
gpasswd -a apache2 nagiosnew a2chkconfig /etc/rc.d/init.d/httpd2 condrestart
[ "$1" = "1" ] || gpasswd -d apache2 nagiosnew [ "$1" = "1" ] || a2chkconfig [ "$1" = "1" ] || /etc/rc.d/init.d/httpd2 condrestart