Professional Web Applications Themes

[ANN] win32-service 0.3.0 - Ruby

All, I am very happy to announce the release of win32-service 0.3.0. Thanks to the help of my fellow cohorts in crime, Park Heesob and Shashank Date, this module now provides code that allows you to run Ruby programs as a Win32 Service! What is it? An interface for controlling and/or monitoring Win32 services. In addition, you can now run Ruby code as a service using the Daemon subclass. Where is it? You can find it on the RAA or at http://rubyforge.org/projects/win32utils/ Sample Daemon code: # (After installing the service) # Write to a file every 10 seconds class Daemon ...

  1. #1

    Default [ANN] win32-service 0.3.0

    All,

    I am very happy to announce the release of win32-service 0.3.0. Thanks to
    the help of my fellow cohorts in crime, Park Heesob and Shashank Date, this
    module now provides code that allows you to run Ruby programs as a Win32
    Service!

    What is it?
    An interface for controlling and/or monitoring Win32 services. In addition,
    you can now run Ruby code as a service using the Daemon subclass.

    Where is it?
    You can find it on the RAA or at http://rubyforge.org/projects/win32utils/

    Sample Daemon code:
    # (After installing the service)
    # Write to a file every 10 seconds
    class Daemon
    def worker
    while state == RUNNING
    sleep 10
    f = File.open("c:\\test.log","a+")
    f.puts("service is running")
    f.close
    end
    end
    end

    d = Daemon.new
    d.mainloop

    You can find out more information by reading the included doentation.
    There is also a sample daemon script for you to play with.

    Note that this should be considered an ALPHA release (the Daemon portion,
    that is). We have great plans for this class, including hooks for signals,
    and whatever else we can dream up.

    Time for a shameless plug - if you're interested in following the
    development of this module and the other win32 utils packages, you can
    subscribe to the mailing list at
    http://rubyforge.org/mailman/listinfo/win32utils-devel. It's a moderated
    list, so no spam. :)

    Enjoy!

    Dan, Park and Shashank

    __________________________________________________ _______________
    Get a FREE online virus check for your PC here, from McAfee.
    http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



    Daniel Guest

  2. #2

    Default Re: [ANN] win32-service 0.3.0

    On Monday, February 2, 2004, 8:15:30 AM, Daniel wrote:
     
     
     
     
     

    Thanks guys. This series of projects makes me more confident about
    one days writing some real Win32 Ruby code :)

    Cheers,
    Gavin




    Gavin Guest

  3. #3

    Default Re: [ANN] win32-service 0.3.0

    In article <com>,
    Daniel Berger <com> wrote: 

    Cool.

    Just an idea: What about some kind of cross-platform Sevices/Deamon
    package so that code written with it can be run on either Windows or *nix
    unchanged?That way the same interface could be used to write code like this
    on any platform. When the module is required it could figure out the correct
    implementation for the class' methods based on PLATFORM (on *nix fork
    could be used, for example).

    Phil

    Phil Guest

Similar Threads

  1. Replies: 0
    Last Post: July 12th, 09:14 AM
  2. win32::eventlog DNS Server, Directory Service, File tion Service
    By volker strasser in forum PERL Modules
    Replies: 0
    Last Post: April 20th, 10:50 AM
  3. Defining service group for Win32::Daemon ?
    By Dean Arnold in forum PERL Modules
    Replies: 0
    Last Post: April 17th, 10:23 PM
  4. [ANN] win32-service 0.2.0
    By Daniel Berger in forum Ruby
    Replies: 0
    Last Post: October 23rd, 05:10 AM
  5. [ANN] win32-service 0.1.0
    By Daniel Berger in forum Ruby
    Replies: 2
    Last Post: October 11th, 05:03 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139