win32-service library

Author(s):?Daniel J. Berger, Park Heesob

Email:?djberg96@gmail.com

Homepage:?http://www.rubyforge.org/projects/win32utils

Gem root:?D:\RailsInstaller\Ruby1.9.2\lib\ruby\gems\1.9.1\gems  

Description
  The win32-service library allows you to control or create MS Windows services.  
Installation

  gem install win32-service # Build from source

  gem install win32-service –platform x86-mingw32 # Install binary  

Synopsis

  require 'win32/service'    # Iterate over the available services

 Service.services do |service|

   p service

 end  

More Documentation

    Please see the documentation in the 'doc' directory, or the gem documentation that was installed when you installed this library as a gem.  

Known Issues
 
Problem:
   Service.delete causes "Unable to delete: The specified service has been  marked for deletion."  
Troubleshooting:
   This can be caused by one of two things. Either you attempted to delete a  running service without stopping it first, or you have the Services ??Administrative Tool (GUI) open. In the former case, the solution is to first  stop the service if it's running. In the latter, close the Services GUI  admin tool before deleting.  
Problem:
   Service.start causes, "The service did not respond to the start or control ??request in a timely fashion."  
Troubleshooting:

   The best way to debug your services is to wrap your entire Daemon subclass  in a begin/end block and send error messages to a file. That should give a  good clue as to the nature of the problem. The most probable culprits are:

You've tried to require a library that's not in your $LOAD_PATH. Make sure
that your require statements are inside the begin/rescue block so that you can  easily find those mistakes.
Your have a bad binary path name. Be sure to use an absolute path name for
the binary path name, including the full path to the Ruby interpreter, e.g.  'c:\ruby\bin\ruby' instead of just 'ruby'.
You've got a syntax error in your code somewhere.
 
See Also
   ruby-wmi  
Future Plans
   Pure Ruby Daemon class   Add service_session_change hook  
Copyright
   (C) 2003-2011, Daniel J. Berger, All Rights Reserved  
License
  Artistic 2.0  
Warranty
  This package is provided "as is" and without any express or  implied warranties, including, without limitation, the implied  warranties of merchantability and fitness for a particular purpose. 
Authors
  Daniel J. Berger ??Park Heesob
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值