Issue #1715 has been updated by avatar.
That have some the relationship with init scripts. My system: SLES10 SP2 x86 When I start puppetd from console all is normal. But when I start puppetd from /etc/init.d/puppet that problem appear again. ---------------------------------------- Bug #1715: Checking state of the Service http://projects.reductivelabs.com/issues/show/1715 Author: avatar Status: Unreviewed Priority: High Assigned to: Category: service Target version: Complexity: Unknown Affected version: 0.24.6 Keywords: There are differences between "normal" and "debug" mode. I want to check a full command line. Part of configuration <pre> service { "apache_${name}_backend": pattern => "/opt/apache.perl/bin/httpd -f /www/conf/$name/httpd.conf", ensure => running } </pre> Part of the file /usr/lib/ruby/site_ruby/1.8/puppet/provider/service/base.rb. I inserted 2 lines for debug. <pre> IO.popen(ps) { |table| table.each { |line| Puppet.notice "---------------------------------------------------------------------------------1"+line.inspect if regex.match(line) Puppet.notice "---------------------------------------------------------------------------------2"+line.inspect ary = line.sub(/^\s+/, '').split(/\s+/) </pre> Output in "normal" mode <pre> puppetd[16555]: ---------------------------------------------------------------------------------1"106 29963 29933 0 Oct28 ? 00:00:14 /opt/apache.perl/bin/httpd -f /w\n" puppetd[16555]: ---------------------------------------------------------------------------------1"106 29964 29933 0 Oct28 ? 00:00:14 /opt/apache.perl/bin/httpd -f /w\n" puppetd[16555]: (//Node[web-backend2.rian.off]/Apache[newsgeorgiaru]/Service[apache_newsgeorgiaru_backend]/ensure) ensure changed 'stopped' to 'running' </pre> Output in "debug" mode <pre> puppetd[16815]: ---------------------------------------------------------------------------------1"109 15861 1 0 10:06 ? 00:00:00 /opt/apache.perl/bin/httpd -f /www/conf/newsgeorgiaru/httpd.conf\n" puppetd[16815]: ---------------------------------------------------------------------------------2"109 15861 1 0 10:06 ? 00:00:00 /opt/apache.perl/bin/httpd -f /www/conf/newsgeorgiaru/httpd.conf\n" puppetd[16815]: (Service[apache_newsgeorgiaru_backend](provider=redhat)) PID is 15861 </pre> ---------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
