After upgrading courier-authlib-base to version 0.66.1_2 rc.d script couldn't check process with '/usr/local/etc/rc.d/courier-authdaemon status' I could fix it by adding some lines Diff output: --- courier-authdaemond.0.66.1_2 2014-09-17 16:04:56.000000000 +0400 +++ courier-authdaemond.fixed 2014-09-17 16:02:53.000000000 +0400 @@ -29,10 +29,13 @@ rcvar=courier_authdaemond_enable command="${sbindir}/authdaemond" +procname="${sbindir}/courierlogger" pidfile="${authdaemonvar}/pid" socket="${authdaemonvar}/socket" +start_precmd="echo 'Starting ${name}.'" start_cmd="${command} start" +stop_precmd="echo 'Stopping ${name}.'" stop_cmd="${command} stop" stop_postcmd="rm -f ${pidfile} ${pidfile}.lock ${socket}" required_dirs="${authdaemonvar}"
Over to maintainer
I broke this in r367564. Just the procname line is enough to fix it, isn't it?
Yes, it is. The procname line is enough. I added two additional lines, cause I think it is user frendly way.
*friendly
A commit references this bug: Author: oliver Date: Wed Sep 17 19:37:26 UTC 2014 New revision: 368413 URL: http://svnweb.freebsd.org/changeset/ports/368413 Log: fix scrip PR: 193707 Submitted by: a.ulasov Changes: head/security/courier-authlib/files/courier-authdaemond.in
Fix committed, thank you!