Hi, I wrote a small func module that installs and configures func. The problem I''m having is that the service type isn''t properly starting the service. I have the following: class func::service { Service { enable => true, ensure => running, hasrestart => true, hasstatus => true, require => Class["func::config"] } service { "funcd": ; } } If funcd isn''t running, puppet doesn''t start it. I checked the funcd service script and it looks correct (if you do "service funcd status" it returns "funcd is not running" and the exit status is 3). Any ideas? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
On 2011-12-08 15:30 , David Alden wrote:> Hi, > I wrote a small func module that installs and configures func. The problem I''m having is that the service type isn''t properly starting the service. I have the following: > > class func::service { > > Service { > enable => true, > ensure => running, > hasrestart => true, > hasstatus => true, > require => Class["func::config"] > } > > service { > "funcd": ; > } > } > > > If funcd isn''t running, puppet doesn''t start it. I checked the funcd service script and it looks correct (if you do "service funcd status" it returns "funcd is not running" and the exit status is 3). Any ideas? >What distro are you on? Is funcd an upstart script? What happens if you do `/etc/init.d/funcd status`? -- Jacob Helwig http://technosorcery.net/about/me
Hi, On Dec 8, 2011, at Dec 8, 6:34 PM, Jacob Helwig wrote:> On 2011-12-08 15:30 , David Alden wrote: >> If funcd isn''t running, puppet doesn''t start it. I checked the funcd service script and it looks correct (if you do "service funcd status" it returns "funcd is not running" and the exit status is 3). Any ideas? >> > > What distro are you on? Is funcd an upstart script? What happens if you > do `/etc/init.d/funcd status`?I''m running Scientific Linux 6.1. What do you mean by "upstart script"? I get the same think with "/etc/init.d/funcd status" as I do "service funcd status" -- both return "funcd is not running and the exit status is 3. I tried the following experiment: # puppet agent -t notice: Ignoring --listen on onetime run info: Retrieving plugin info: Loading facts in iptables info: Loading facts in iptables info: Caching catalog for f.q.d.n info: Applying configuration version ''1323439077'' notice: Finished catalog run in 4.32 seconds # /etc/init.d/ntpd stop # cp /etc/init.d/ntpd /etc/init.d/funcd # puppet agent -t notice: Ignoring --listen on onetime run info: Retrieving plugin info: Loading facts in iptables info: Loading facts in iptables info: Caching catalog for f.q.d.n info: Applying configuration version ''1323442995'' notice: /Stage[main]/Func::Service/Service[funcd]/ensure: ensure changed ''stopped'' to ''running'' notice: Finished catalog run in 4.56 seconds Now of course it really started ntpd, but that tells me that it doesn''t like the funcd script. Help? -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jeffrey Watts
2011-Dec-09 15:54 UTC
Re: [SPAM] Re: [Puppet Users] problem with fund service
Not sure if you''re aware, but ''init'' is no longer init. Upstart is the default init in many distributions, though Fedora/RHEL (and others) are now moving to systemd, which is much better. rpm -qf /sbin/init Jeffrey. On Fri, Dec 9, 2011 at 9:38 AM, David Alden <dave@alden.name> wrote:> > I''m running Scientific Linux 6.1. What do you mean by "upstart script"? > I get the same think with "/etc/init.d/funcd status" as I do "service > funcd status" -- both return "funcd is not running and the exit status is 3. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Aaron Grewell
2011-Dec-09 17:38 UTC
Re: [SPAM] Re: [Puppet Users] problem with fund service
SL is an RHEL derivative, so it''s still using the traditional init system. No need to worry about upstart or systemd until 7.x hits. On Fri, Dec 9, 2011 at 7:54 AM, Jeffrey Watts <jeffrey.w.watts@gmail.com> wrote:> Not sure if you''re aware, but ''init'' is no longer init. Upstart is the > default init in many distributions, though Fedora/RHEL (and others) are now > moving to systemd, which is much better. > > rpm -qf /sbin/init > > Jeffrey. > > > On Fri, Dec 9, 2011 at 9:38 AM, David Alden <dave@alden.name> wrote: >> >> >> I''m running Scientific Linux 6.1. What do you mean by "upstart script"? >> I get the same think with "/etc/init.d/funcd status" as I do "service funcd >> status" -- both return "funcd is not running and the exit status is 3. >> > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.