Date: Thu, 10 Oct 2013 15:50:02 GMT From: Kristof Provost <kristof@sigsegv.be> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/182792: knotd startup script no longer works Message-ID: <201310101550.r9AFo2uY003269@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/182792; it has been noted by GNATS. From: Kristof Provost <kristof@sigsegv.be> To: bug-followup@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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201310101550.r9AFo2uY003269>