All pastes #471308 Raw Edit

Untitled

public shellscript v1 · immutable
·published 2007-05-04 20:41 UTC
rendered paste body
reload() {        # Stop daemons.        echo -n $"reloading $prog: "        /usr/bin/newaliases > /dev/null 2>&1        if [ -x /usr/bin/make -a -f /etc/mail/Makefile ]; then          make all -C /etc/mail -s > /dev/null        else          for i in virtusertable access domaintable mailertable ; do            if [ -f /etc/mail/$i ] ; then                makemap hash /etc/mail/$i < /etc/mail/$i            fi          done        fi        daemon /usr/sbin/sendmail $([ "x$DAEMON" = xyes ] && echo -bd) \            $([ -n "$QUEUE" ] && echo -q$QUEUE)        RETVAL=$?        killproc sendmail -HUP        RETVAL=$?        echo