I'm trying to setup a service that doesn't support any service script. 
Using the following:
 
 service { 'Rserve':
    ensure => 'running',
    start => '/usr/bin/R CMD Rserve --gui-none',
    provider => 'base',
  }

When I run puppet agent -t -d, it returns the following:

Debug: Service[Rserve](provider=base): Executing 'ps -ef'
Debug: Executing '/usr/bin/R CMD Rserve --gui-none'
Error: Could not start Service[Rserve]: Execution of '/usr/bin/R CMD Rserve 
--gui-none' returned 2:
Error: /Service[Rserve]/ensure: change from stopped to running failed: 
Could not start Service[Rserve]: Execution of '/usr/bin/R CMD Rserve 
--gui-none' returned 2:


It seems the command is failed. However, if I run the same exact command as 
root, the command execute fine and return 0. I'm wondering why it's failed 
when puppet runs? What's the difference between puppet runs and I run? 
Thanks.
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to