Bug 193707 - courier-authlib-base rc.d script doesn't work properly
Summary: courier-authlib-base rc.d script doesn't work properly
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Oliver Lehmann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-17 12:13 UTC by a.ulasov
Modified: 2014-09-17 19:38 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description a.ulasov 2014-09-17 12:13:57 UTC
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}"
Comment 1 Marcus von Appen freebsd_committer freebsd_triage 2014-09-17 16:39:58 UTC
Over to maintainer
Comment 2 Tijl Coosemans freebsd_committer freebsd_triage 2014-09-17 18:18:03 UTC
I broke this in r367564.  Just the procname line is enough to fix it, isn't it?
Comment 3 a.ulasov 2014-09-17 19:21:40 UTC
Yes, it is. The procname line is enough. I added two additional lines, cause I think it is user frendly way.
Comment 4 a.ulasov 2014-09-17 19:23:57 UTC
*friendly
Comment 5 commit-hook freebsd_committer freebsd_triage 2014-09-17 19:37:49 UTC
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
Comment 6 Oliver Lehmann freebsd_committer freebsd_triage 2014-09-17 19:38:39 UTC
Fix committed, thank you!