I have a service set up with a custom status check, but when I run puppet
it ignores my custom status command and runs the standard upstart status
check.

My service definition is as follows:

service { "gamedeploy-${title}":
  ensure     => running,
  provider   => upstart,
  start      => "/sbin/initctl start gamedeploy-${title} GAME=${game}
COMPONENT=${title} ENVIRONMENT=${::environment} DELAY=${delay}",
  stop       => "/sbin/initctl stop gamedeploy-${title} COMPONENT=${title}",
  status     => "/sbin/initctl status gamedeploy-${title}
COMPONENT=${title}",
  hasstatus  => false,
  hasrestart => false,
  require    => File["gamedeploy_init_${title}"],
}

And here's the puppet debug output:

Debug: Executing '/sbin/status gamedeploy-frontend'
Debug: Executing '/sbin/initctl start gamedeploy-frontend GAME=test
COMPONENT=frontend ENVIRONMENT=stage DELAY=5'
Error: Could not start Service[gamedeploy-frontend]: Execution of
'/sbin/initctl start gamedeploy-frontend GAME=test COMPONENT=frontend
ENVIRONMENT=stage DELAY=5' returned 1:
Error:
/Stage[main]/Deploy/Deploy_service[frontend]/Service[gamedeploy-frontend]/ensure:
change from stopped to running failed: Could not start
Service[gamedeploy-frontend]: Execution of '/sbin/initctl start
gamedeploy-frontend GAME=test COMPONENT=frontend ENVIRONMENT=stage DELAY=5'
returned 1:
Debug: Executing '/sbin/initctl start gamedeploy-frontend GAME=test
COMPONENT=frontend ENVIRONMENT=stage DELAY=5'

As you can see, it should be using "/sbin/initctl status
gamedeploy-frontend COMPONENT=frontend" as the check, but instead just uses
"/sbin/status gamedeploy-frontend".

Anyone know why?

Thanks,
Guy
<g...@eastsidegamestudio.com>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BgQdWC%2BqOMStASxecHyL9Fd%3D%2BoStMQs%3D9cFpKxiigh1J8F-cQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to