# Win32 service error

**URL:** <https://www.ruby-forum.com/t/win32-service-error/130137>\
**Category:** Ruby\
**Created:** [February 25, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/win32-service-error/130137 "2008-02-25T18:56:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Junkone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/e274bd/32.png) [@Junkone](https://www.ruby-forum.com/u/Junkone)\
**Post date:** [February 25, 2008, 6:56pm UTC](https://www.ruby-forum.com/t/win32-service-error/130137/1 "2008-02-25T18:56:22Z")

</div>

Hello  
I am trying out an example from  
[http://rubyforge.org/docman/view.php/85/595/service.html](http://rubyforge.org/docman/view.php/85/595/service.html)  
and it errors out  
require “win32/service”  
include Win32

# Create a new service

Service.create(‘some\_service’, nil,  
:service\_type =\> Service::WIN32\_OWN\_PROCESS,  
:description =\> ‘A custom service I wrote just for fun’  
:start\_type =\> Service::AUTO\_START,  
:error\_control =\> Service::ERROR\_NORMAL,  
:binary\_path\_name =\> ‘E:\TradingTools\torontotrader  
\startServer.bat’,  
:load\_order\_group =\> nil,  
:dependencies =\> nil  
:service\_start\_name =\> ‘LocalSystem’,  
:password =\> nil,  
:display\_name =\> ‘This is some service’  
)

E:/TradingTools/Development/app/helpers/Ruby-1.rb:8: syntax error,  
unexpected tSYMBEG, expecting ‘)’  
:start\_type =\> Service::AUTO\_START,  
^
