dkimproxy rc script

ML ml at sd2i.com
Sun Oct 11 13:44:15 UTC 2009


Hello,

currently dkimproxy rc scripts don’t handle the status rc command

my hack is the following ("old school" script, I don’t know enough  
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}" > / 
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.


More information about the freebsd-ports mailing list