Issue #2853 has been updated by Peter Meier.

Status changed from Unreviewed to Duplicate

#2767
----------------------------------------
Bug #2853: disabled service should not call invoke-rc.d on the initscript, if 
the initscript doesn't exist at all
http://projects.reductivelabs.com/issues/2853

Author: micah -
Status: Duplicate
Priority: Normal
Assigned to: 
Category: service
Target version: 
Affected version: 0.25.1
Keywords: 
Branch: 


I have a set of services that I want to make sure are disabled on virtualized 
instances, so I have the following:

<pre>
  service { [ "bootlogd", "bootmisc.sh", "checkfs.sh", "checkroot.sh",
              "console-screen.sh", "halt", "hostname.sh",
              "hwclock.sh", "hwclockfirst.sh", "ifupdown",
              "ifupdown-clean", "keymap.sh", "klogd", "makedev",
              "modutils", "mountall.sh", "mountnfs.sh",
              "mountvirtfs", "networking", "procps.sh", "reboot",
              "rmnologin", "single", "stop-bootlogd", "umountfs",
              "umountnfs.sh", "urandom", "umountroot" ]:
    enable => false
  }
</pre>

This has worked fine with pre-0.25 puppet. However, now I am getting the 
following in puppet runs:

<pre>
invoke-rc.d: unknown initscript, /etc/init.d/mountvirtfs not found.
</pre>

That is because the initscript /etc/init.d/mountvirtfs doesn't exist, because 
whatever package has that initscript in it is not installed. 

It would be nice if before puppet attempted its invoke-rc.d to disable a 
service, it first checked to see if that initscript even existed and if not 
then it didn't issue that command. That way stderr wont get that spew.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://reductivelabs.com/redmine/my/account

--

You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.


Reply via email to