Hi > I'm running RHEL 4, and have just installed Mongrel and Nginx. > > I found and have tried this init script: > http://github.com/duritong/puppet-puppet/tree/master/files/cluster/init.d/puppetmaster.CentOS > > Starting puppetmaster works fine, but when I try stopping it I get a "pidof: > invalid options on command line!" error messages. > > Seems like this is the line that causes to error: > > killproc -p $PUPPETMASTER_PID_DIR/puppetmaster.${PUPPETMASTER_PORTS[$i]}.pid > $PUPPETMASTER > > Is this a known problem with this scripts? If so, are there any fixes for > it?
as I'm the author of the mongrel extensions for the init.d script (and you're using my repo) and as I'm currently rebasing and improving it to get included into puppet, I should or at least can answer that: The script have only be used and tested on centos 5 (which is rhel 5) and it works fine there. The problem of your error is, that the killproc function defined in /etc/rc.d/init.d/functions on rhel/centos 4 systems doesn't accept a -p option, while it is present on rhel/centos 5 systems. However it seems that I only needed to use this -p option because I made the pid-dir configurable, which was somehow anyway not a good idea. As discussed with David Lutterkort and mentioned in #1460 [1] I'll change the init.d scripts with the according needs and ideas and there will be an improved version be published today. And I'll try to make it rhel 4 compatible. It would be nice if you could test it then, as I think rhel 4 compatibility should be there for init-scripts. Can I ping you later to test it? greets pete [1] http://projects.reductivelabs.com/issues/show/1460 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" 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-users?hl=en -~----------~----~----~----~------~----~------~--~---
