[Win32utils-devel] Problem with starting service with win32-service

Heesob Park phasis at gmail.com
Wed Aug 7 01:30:49 UTC 2013


Hi,

2013/8/7 Sean Karlage <sean.karlage at uky.edu>:
> The startup arguments when Service.start() is called are here:
>
> Service.start(SERVICE_NAME, nil, config_path, emails_path)
>
> SERVICE_NAME is a constant defined previously, and config_path and
> emails_path are both paths to files that are parsed when the service is
> started. When I print out the args to the start method, I get the following:
>
> args = ["ShareCleaner", "C:/Ruby200-x64/bin/sharecleaner.ini"]
>
> These two strings correspond to SERVICE_NAME and config_path. emails_path
> doesn't show up at all.
>
I confirmed the service name is duplicated on arguments.
It is due to a bug of Service.start.

The line # 710 https://github.com/djberg96/win32-service/blob/ffi/lib/win32/service.rb#L710
str_ptrs << FFI::MemoryPointer.from_string(service)
shoud be removed.

Regards,
Park Heesob


More information about the win32utils-devel mailing list