Commit graph

10 commits

Author SHA1 Message Date
taca
e3324c579f Update ruby-daemons to 1.1.8.
= Daemons Release History

== Release 1.1.8: February 7, 2012

* rename to daemonization.rb to daemonize.rb (and Daemonization to Daemonize) to
  ensure compatibility.

== Release 1.1.7: February 6, 2012

* start_proc: Write out the PID file in the newly created proc to avoid race conditions.
* daemonize.rb: remove to simplify licensing (replaced by daemonization.rb).

== Release 1.1.6: January 18, 2012

* Add the :app_name option for the "call" daemonization mode.

== Release 1.1.5: December 19, 2011

* Catch the case where the pidfile is empty but not deleted
  and restart the app (thanks to Rich Healey)
2012-03-17 16:18:12 +00:00
taca
37e8c46bbb Update ruby-daemons package to 1.1.4.
= Daemons Release History

== Release 1.1.4: June 17, 2011

* Do not change the umask to 0000 when daemonizing anymore, just leave it as it
  was (thanks to Jon Botelho).

== Release 1.1.3: April 14, 2011

* Fixed a bug in Application.stop: the cached pid number needs to
  be used to check for the status of a killed process (thanks to Jimmy Sieben).

== Release 1.1.2: March 29, 2011

* Fixed gemspec to include all needed files.

== Release 1.1.1: March 29, 2011

* Make the logging facilities work in :mode => :none (i.e. when calling
  Daemons.daemonize) (thanks to the input from Peter Hegedus).
2011-06-19 01:48:39 +00:00
taca
ec38537090 Update misc/ruby-daemons to 1.1.0.
* Use lang/ruby/gem.mk instead of misc/rubygems/rubygem.mk.
* Add LICENSE.


== Release 1.1.0: June 20, 2010

* Honour the options[:app_name] in Daemons.daemonize (thanks to Ryan Tecco).
* Included a new option :stop_proc to specify a proc that will be called when a
  daemonized process receives a request to stop (thanks to Dave Dupre).
* Only delete the pidfile if the current pid is the original pid (ghazel).
* Start when restart but no application running (pcreux).
* Silently continue if there is no pidfile (ghazel).
* We now per default wait for processes to stop and
  kill them automatically it if they do not stop within a given time
  (force_kill_waittime). Use the option --no_wait to not wait for processes to
  stop.
* Set log files mode to 0644 (mikehale).
* Set pid file permissions to 0644 (mikehale).
* Added ability to change process uid/gid (mikehale).
* Fix for: If you happen to start a daemon from a process that has open file
  descriptors these will stay open. As it is daemonize.rb only closes ruby IO
  objects (thanks to Han Holl).
* New reload command (SIGHUP) (thanks to Michael Schuerig).
2010-09-10 07:22:54 +00:00
taca
279c044cb1 * Fix build problem with new Rubygems by removing an obsolete method call.
No PKGREVISION bump since there is no change with built package.
2009-06-12 12:02:48 +00:00
jlam
e01e26a3ae Update ruby-daemons to version 1.0.10. Changes from version 1.0.8 include:
+ Install as a Ruby gem.

- Fixed a severe bug in the new Pid.running? function: function returned
  true if the process did not exist.

- 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.

- Use the signal 'KILL' instead of 'TERM' on Windows platforms.

- Use exit! in trap('TERM') instead of exit when option :hard_exit is given.

- Did some clarification on the exception log.
2008-04-04 15:19:57 +00:00
minskim
71ac351e6e Update ruby-daemons to 1.0.8.
Changes:
* new Pid.running? function. Checking whether a process exists by sending
  signal '0'
* Patch to fix wrong ARGV when using :exec (in def start_exec:
  Kernel.exec(script(), *(@app_argv || [])))
2007-10-16 04:09:04 +00:00
minskim
b2e14dc057 Update ruby-daemons to 1.0.6.
Changes:
* New option to pass an ARGV-style array to run and run_proc
* Additional patches for '/var/log'
2007-05-23 01:16:59 +00:00
minskim
dad6ee1172 Update ruby-daemons to 1.0.5.
Changes:
* Applied patch that causes 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 features).
2007-04-27 19:45:07 +00:00
minskim
42148257b8 Update ruby-daemons to 1.0.4.
Changes since 1.0.2:
* Document the :log_output option.
* Set STDOUT.sync = true when redirecting to a logfile.
* Should now run also correctly when there is no working 'ps ax' on the
  system
* Set the app_name correctly also for the monitor process.
2007-02-04 00:05:28 +00:00
minskim
fcef39711d Import ruby-daemons-1.0.2.
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.  daemons can also
run and control blocks of Ruby code in a daemon process.
2006-10-14 05:51:18 +00:00