# Trinidad starting service

**URL:** <https://www.ruby-forum.com/t/trinidad-starting-service/230533>\
**Category:** Rails\
**Created:** [June 22, 2014, 7:28pm UTC](https://www.ruby-forum.com/t/trinidad-starting-service/230533 "2014-06-22T19:28:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jason\_sam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/7993a0/32.png) [@jason\_sam](https://www.ruby-forum.com/u/jason_sam)\
**Post date:** [June 22, 2014, 7:28pm UTC](https://www.ruby-forum.com/t/trinidad-starting-service/230533/1 "2014-06-22T19:28:22Z")

</div>

Hi, first inform you that I am the translator google, I’m not good at  
English.

I’m trying to put the trinidad as a service but I’m trying to issue in  
log  
shows this error, can someone help me?

Exception in thread “jsvc-daemon-main”  
org.jruby.exceptions.RaiseException:  
(NameError) uninitialized constant Trinidad::CommandLineParser  
at  
org.jruby.RubyModule.const\_missing(org/jruby/RubyModule.java:2690)  
at  
usr.local.rvm.gems.jruby\_minus\_1\_dot\_7\_dot\_12.gems.trinidad\_init\_services\_minus\_1\_dot\_2\_dot\_3.lib.trinidad.daemon.start(/usr/local/rvm/gems/jruby-1.7.12/gems/trinidad\_init\_services-1.2.3/lib/trinidad/daemon.rb:24)  
java.lang.reflect.InvocationTargetException  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at  
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)  
at  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:601)  
at  
org.apache.commons.daemon.support.DaemonLoader.stop(DaemonLoader.java:268)  
Caused by: org.jruby.exceptions.RaiseException: (NoMethodError)  
undefined  
method `stop’ for nil:NilClass  
at  
usr.local.rvm.gems.jruby\_minus\_1\_dot\_7\_dot\_12.gems.trinidad\_init\_services\_minus\_1\_dot\_2\_dot\_3.lib.trinidad.daemon.stop(/usr/local/rvm/gems/jruby-1.7.12/gems/trinidad\_init\_services-1.2.3/lib/trinidad/daemon.rb:33)  
Cannot stop daemon  
Service exit with a return value of 6  
Exception in thread “jsvc-daemon-main”  
org.jruby.exceptions.RaiseException:  
(NameError) uninitialized constant Trinidad::CommandLineParser  
at  
org.jruby.RubyModule.const\_missing(org/jruby/RubyModule.java:2690)  
at  
usr.local.rvm.gems.jruby\_minus\_1\_dot\_7\_dot\_12.gems.trinidad\_init\_services\_minus\_1\_dot\_2\_dot\_3.lib.trinidad.daemon.start(/usr/local/rvm/gems/jruby-1.7.12/gems/trinidad\_init\_services-1.2.3/lib/trinidad/daemon.rb:24)  
~

–  
Alcelyo R Mariz  
Bacharel em Sistemas de Informação
