#!@RCD_SCRIPTS_SHELL@ # # $NetBSD: qmail.sh,v 1.3 2004/08/23 03:47:48 schmonz Exp $ # # @PKGNAME@ master script for administrators to control qmail # services. Usage resembles the qmailctl script from "Life with qmail". # # For Red Hat chkconfig # chkconfig: - 80 30 # description: the qmail MTA # # KEYWORD: nostart if [ -f /etc/rc.subr ]; then . /etc/rc.subr fi rcd_dir=`@DIRNAME@ $0` # NOTE: run_rc_command sets $rc_arg # forward_commands() { # Backward compat with NetBSD <1.6: [ -z "$rc_arg" ] && rc_arg=$_arg for file in $COMMAND_LIST; do $rcd_dir/$file $rc_arg done } reverse_commands() { # Backward compat with NetBSD <1.6: [ -z "$rc_arg" ] && rc_arg=$_arg REVCOMMAND_LIST= for file in $COMMAND_LIST; do REVCOMMAND_LIST="$file $REVCOMMAND_LIST" done for file in $REVCOMMAND_LIST; do $rcd_dir/$file $rc_arg done } qmailrcd() { for service in $@; do $rcd_dir/qmail${service} $rc_arg done } qmail_help() { @CAT@ <