A new user interface for you!

File rubygem-daemons.spec of Package rubygem-daemons

# spec file for package rubygem-daemons (Version 1.0.10)
# Copyright (c) 2007-2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
# Please submit bugfixes or comments via http://bugs.opensuse.org/

# norootforbuild

Name:           rubygem-daemons
Version:        1.0.10
Release:        5.1
%define mod_name daemons
Group:          Development/Languages/Ruby
License:        Other uncritical OpenSource License
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  rubygems_with_buildroot_patch
Requires:       rubygems >= 1.3.1
Url:            http://daemons.rubyforge.org/
#               http://rubyforge.org/projects/daemons
Source:         http://rubyforge.org/frs/download.php/34222/daemons-1.0.10.gem
Summary:        Easy way to convert selfwritten servers into daemons
Daemons provides an easy way to wrap existing ruby scripts (for example
a self-written server) to be run as a daemon and to be controlled by
simple start/stop/restart commands.

If you want, you can also use daemons to run blocks of ruby code in a
daemon process and to control these processes from the main

Besides this basic functionality, daemons offers many advanced features
like exception backtracing and logging (in case your ruby script
crashes) and monitoring and automatic restarting of your processes if
they crash.

Daemons includes the daemonize.rb script written by Travis Whitton to
do the daemonization process.

    Thomas Uehlinger <th.uehlinger@gmx.ch>



%gem_install %{S:0}

%{__rm} -rf %{buildroot}

%doc %{_libdir}/ruby/gems/%{rb_ver}/doc/%{mod_name}-%{version}/

* Mon Aug 25 2008 mrueckert@suse.de
- update to version 1.0.10
  * By default, we now delete stray pid-files (i.e. pid-files which
    result for example from a killed daemon) automatically. This
    function can be deactivated by passing :keep_pid_files => true
    as an option.
  * All pid files of :multiple daemons new get deleted correctly
    upon exit of the daemons (reported by Han Holl).
  * Use the signal 'KILL' instead of 'TERM' on Windows platforms.
  * Use exit! in trap('TERM') instead of exit when option
    :hard_exit is given (thanks to Han Holl).
  * Did some clarification on the exception log
* Thu Feb 21 2008 mrueckert@suse.de
- update to version 1.0.9:
  new Pid.running? function. Checking whether a process exists by
  sending signal '0' (added in 1.0.8 and fixed in 1.0.9)
* Sun Aug  5 2007 mrueckert@suse.de
- update to version 1.0.7:
  * Patch to fix wrong ARGV when using :exec (in def start_exec:
    Kernel.exec(script(), *(@app_argv || [])))
    (thanks to Alex McGuire).
* Mon May 14 2007 mrueckert@suse.de
- Update to version 1.0.6:
  * New option to pass an ARGV-style array to run and run_proc
    (thanks to Marc Evans).
  * Additional patches for '/var/log' (thanks to Marc Evans).
- additional changes from 1.0.5
  * Applied patch that makes daemons to use '/var/log' as logfile
    directory if you use :dir_mode = :system (thanks to Han Holl).
  * Daemons should now work with Ruby 1.9 (at least the basic
- additional changes from 1.0.4
  * Document the :log_output option (thanks to Andrew Kuklewicz).
  * Set STDOUT.sync = true when redirecting to a logfile
    (thanks to Andrew Kuklewicz).
  * Should now run also correctly when there is no working 'ps ax'
    on the system (thanks to Daniel Kehoe).
- additional changes from 1.0.3
  * Set the app_name correctly also for the monitor process
  (thanks to Ilya Novoselov).
* Fri Oct  6 2006 mrueckert@suse.de
- Update to version 1.0.2:
  o Changed the 'ps -ax' call back to 'ps ax'.
  o Fixed the documentation for the :normal :dir_mode.
  o As a default for Daemons.run_proc, the pid file is now saved
    in the current directory.
  o In :ontop mode for running a proc (this is equal to calling
    something like 'ruby ctrl_proc.rb run'), the proc now runs
    directly in the calling script, not in a forked process anymore
    (thanks to Paul Butcher).
  o Set $0 to app_name in the daemons (thanks to Ilya Novoselov).
* Wed Aug 30 2006 mrueckert@suse.de
- Update to version 1.0.1:
  o Fixes regexp to parse "ps ax"
* Wed Jun 21 2006 mrueckert@suse.de
- use rubygems_with_buildroot_patch instead of the versioned
* Mon Jun 19 2006 mrueckert@suse.de
- Initial package version 0.4.4