2 /usr/sbin/useradd -d /var/lib/mongodb -r -g daemon -M -N -s /bin/false mongodb && \
3 /bin/chown -R mongodb:daemon /var/lib/mongodb
7 if [ ! "$(id -g mongodb)" = "daemon" ]; then
8 /usr/sbin/usermod -g daemon mongodb
13 /etc/rc.d/mongodb stop
17 /usr/sbin/userdel mongodb