On Monday, November 19, 2012 6:37:28 PM UTC-6, Forrie wrote: > > Thanks for the explanation, I appreciate it. > > These services are provided by Redhat as are the init scripts, which > report: > > > # /etc/init.d/cups-config-daemon status > cups-config-daemon is obsolete > > # /etc/init.d/hidd status > hidd is stopped > > > I can see where the first one is unexpected to Puppet. > > What Matthaus said. But also, I emphasize what he breezed over: it is the *exit code* of the 'service' command that Puppet considers, as I wrote earlier. Nothing the command sends to its output or error stream is relevant to Puppet's evaluation. In the shell, you can get the exit code of the last foreground process run by that shell from the variable $?. Example:
/etc/init.d/cups-config-daemon status echo $? John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/uZp2BpP3ibkJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.