Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Apr 2016 08:03:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        ruby@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 208628] sysutils/puppet38 path to sysutils/daemontools'es commands
Message-ID:  <bug-208628-21402-M1inoMxLjw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-208628-21402@https.bugs.freebsd.org/bugzilla/>
References:  <bug-208628-21402@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Alexey <fbsd98816551@avksrv.org> has reassigned Bugzilla Automation
<bugzilla@FreeBSD.org>'s request for maintainer-feedback to ruby@FreeBSD.or=
g:
Bug 208628: sysutils/puppet38 path to sysutils/daemontools'es commands
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208628



--- Description ---
Due FreeBSD port's executables installed to /usr/local by default, puppet's
default path-es to executables have to be changed to /usr/local/bin/ instea=
d of
default /usr/bin
(and default root dir for svcscan is /var/service, not /service)


without changes puppet generate an error when we try to use service{ provid=
er
=3D> daemontools;}
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does n=
ot
exist
 Provider daemontools is not functional on this host


next patch fix the problem

--- ./puppet-3.8.4/lib/puppet/provider/service/daemontools.rb.orig=20=20=20=
=20=20
2016-04-08 10:46:37.767082000 +0300
+++ ./puppet-3.8.4/lib/puppet/provider/service/daemontools.rb	2016-04-08
10:47:49.370475000 +0300
@@ -39,7 +39,7 @@

   EOT

-  commands :svc  =3D> "/usr/bin/svc", :svstat =3D> "/usr/bin/svstat"
+  commands :svc  =3D> "/usr/local/bin/svc", :svstat =3D> "/usr/local/bin/s=
vstat"

   class << self
     attr_writer :defpath
@@ -88,7 +88,7 @@
   # find the service dir on this node
   def servicedir
     unless @servicedir
-      ["/service", "/etc/service","/var/lib/svscan"].each do |path|
+      ["/var/service", "/etc/service","/var/lib/svscan"].each do |path|
	 if Puppet::FileSystem.exist?(path)
	   @servicedir =3D path
	   break

And same have to be for puppet37 and 4 branches



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208628-21402-M1inoMxLjw>