ports/182792: knotd startup script no longer works

Kristof Provost kristof at sigsegv.be
Thu Oct 10 15:50:03 UTC 2013


The following reply was made to PR ports/182792; it has been noted by GNATS.

From: Kristof Provost <kristof at sigsegv.be>
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: ports/182792: knotd startup script no longer works
Date: Thu, 10 Oct 2013 15:42:48 +0000

 --liOOAslEiF7prFVr
 Content-Type: text/plain; charset=utf-8
 Content-Disposition: inline
 
 I've solved the problem for me with the attached patch.
 
 Regards,
 Kristof
 
 --liOOAslEiF7prFVr
 Content-Type: text/x-diff; charset=utf-8
 Content-Disposition: attachment; filename="knotd.patch"
 
 --- knotd-old	2013-10-10 17:20:25.619211573 +0200
 +++ knotd	2013-10-10 17:41:53.109211462 +0200
 @@ -28,23 +28,23 @@
  : ${knot_enable:="NO"}
  : ${knot_config="/usr/local/etc/knot/knot.conf"}
  
 -command=/usr/local/sbin/${name}c
 -procname=/usr/local/sbin/${name}d
 +knotc=/usr/local/sbin/${name}c
 +command=/usr/local/sbin/${name}d
  pidfile=/var/run/${name}.pid
  
 -command_args="-c ${knot_config} -w start"
 +command_args="-c ${knot_config} -d"
  required_files=${knot_config}
  
  knot_reload() {
  	echo "Reloading ${name}."
 -	${command} -c ${knot_config} reload
 +	${knotc} -c ${knot_config} reload
  	}
  knot_status() {
 -	${command} -c ${knot_config} status
 +	${knotc} -c ${knot_config} status
  	}
  knot_stop() {
  	echo "Stopping ${name}."
 -	${command} -c ${knot_config} stop
 +	${knotc} -c ${knot_config} stop
  	}
  
  run_rc_command "$1"
 
 --liOOAslEiF7prFVr--


More information about the freebsd-ports-bugs mailing list