Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Oct 2009 15:02:18 +0200
From:      ML <ml@sd2i.com>
To:        ports@FreeBSD.org
Subject:   dkimproxy rc script
Message-ID:  <964AC7D5-8383-4E3E-A36C-6E957AC0B4CA@sd2i.com>

next in thread | raw e-mail | index | archive | help
Hello,

currently dkimproxy rc scripts don=92t handle the status rc command

my hack is the following ("old school" script, I don=92t know enough =20
about rc command deeps to make things nicer)

# at the end of rc.d/dkimproxy_out replace

                 run_rc_command "$1"

# by the following

	case $1 in
         	status)
                 	if /usr/bin/pgrep -F "${dkimproxy_out_pidfile}" =
> /=20
dev/null 2>&1; then
                         	echo "${name} is running"
                         	exit 0;
                 	else
                         	echo "${name} is not running"
                         	exit 1
                 	fi
         	;;
         	*)
                 	run_rc_command "$1"
         	;;
	esac


Hope this help.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?964AC7D5-8383-4E3E-A36C-6E957AC0B4CA>