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 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256
|
= Daemons Release History
== Release 1.4.1: August 26, 2021
* Fix :proc mode (pass &block explicitly) (thanks to Graham Rogers)
* Fix style of REAMDE.md
== Release 1.4.0: May 1, 2021
* Allow for customization which signals are sent to stop process (thanks to philister)
* Resolves mismatched indentations (thanks to Luis M Rodriguez)
* Allow to use pry-byebug 3.8.0 (thanks to kamipo)
== Release 1.3.1: December 14, 2018
* Fix undefined local variable or method `pid_delimiter'
== Release 1.3.0: December 10, 2018
* Make logging more configurable.
* Add configuration options for pid file delimters, force_kill_waittime
* All status callback to be anything callable.
== Release 1.2.6: December 24, 2017
* Add links to rubydoc.info documentation.
== Release 1.2.5: October 22, 2017
* In Application#stop, call zap, not cleanup on the pidfile (thanks to wevanscfi)
* Use File.expand_path on and output and log files (thanks to Dave Harris)
== Release 1.2.4: August 1, 2016
* add :shush option
* add :monitor_interval option
* add :log_output_syslog option
== Release 1.2.3: June 25, 2015
* fix: ApplicationGroup now waits on subprocesses in start_all (thanks to tobithiel)
== Release 1.2.2: March 17, 2015
* fix 100% CPU usage bug when using monitor mode.
== Release 1.2.1: March 10, 2015
* increase version number to be able to re-push to rubygems
== Release 1.2.0: March 8, 2015
* add options for custum log file names.
* change pid file name scheme to "#progname_num#{number}.pid" for multiple instances.
* fix call_as_daemon not saving the PID (thanks Roberto Plancarte)
* allow for custom statis messages (thanks to Joseph Haig)
* fix Pid.running? rescuing timeout exceptions (thanks to Geraud Boyer)
* monitor.rb/application.rb/application_group.rb: handle :monitor and :multiple in combination correctly
(thanks to Prakash Murthy).
* pidfile.rb: Handle invalid or empty pid files instead of returning pid 0 (thanks to Aaron Stone)
* run the whole gem through Rubocop (thanks to Aaron Stone)
* gem cleanup (thanks to Aaron Stone)
== Release 1.1.9: August 10, 2012
* daemonize.rb: do srand in the forked child process both in daemonize and call_as_daemon
(thanks to Andrew Havens).
== 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)
== 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).
== 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).
== Release 1.0.10: March 21, 2008
* 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.
== Release 1.0.9: October 29, 2007
* fixed a severe bug in the new Pid.running? function: function returned true if
the process did not exist (thanks to Jeremy Lawler).
== Release 1.0.8: September 24, 2007
* new Pid.running? function. Checking whether a process exists by sending
signal '0' (thanks to Dru Nelson).
== Release 1.0.7: July 7, 2007
* Patch to fix wrong ARGV when using :exec (in def start_exec:
Kernel.exec(script(), *(@app_argv || []))) (thanks to Alex McGuire).
== Release 1.0.6: Mai 8, 2007
* 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).
== Release 1.0.5: February 24, 2007
* 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 features).
== Release 1.0.4: January 17, 2007
* 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).
== Release 1.0.3: November 1, 2006
* Set the app_name correctly also for the monitor process (thanks to Ilya Novoselov).
== Release 1.0.2: September 26, 2006
* Changed the 'ps -ax' call back to 'ps ax'.
* Fixed the documentation for the :normal :dir_mode.
* As a default for Daemons.run_proc, the pid file is now saved in the current directory.
* 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).
* Set $0 to app_name in the daemons (thanks to Ilya Novoselov).
== Release 1.0.1: August 30, 2006
* Fixed a regex for parsing the 'ps ax' system call. (thanks to Garance Alistair Drosehn)
== Release 1.0.0: August 29, 2006
* Fix the parsing of the 'ps ax' system call. (thanks to Garance Alistair Drosehn)
== Release 0.4.4: February 14, 2006
* Several fixes that allow us to use the Daemons::Controller
with a proc instead of wrapping a script file. This gives us all the
PID file management, monitoring, command line options, etc. without having
to specify a path to our script which can be tricky, especially when using
RubyGems. (thanks to John-Mason Shackelford)
== Release 0.4.3: November 29, 2005
* New Option: You can specify the name of the application with :app_name
on calling Daemons.run. This will be used to contruct the name of the pid files
and log files. Defaults to the basename of the script. (thanks to Stephen R. Veit)
* Bugfix: Handle the case where no controller options are given when calling Daemons,
just options after "--". (thanks to Stephen R. Veit)
== Release 0.4.2: November 15, 2005
* Bugfix for problem with :normal pid-file directory mode (pid.rb), fixed (thanks to Stephen R. Veit)
== Release 0.4.1: September 11, 2005
* Bugfix for 'run' command line mode: didn't work anymore in 0.4.0, fixed
== Release 0.4.0: July 30, 2005
* Two completely new operation modes:
1. Call a block as a daemon (<tt>Daemons.call { my_daemon_code }</tt>)
and control it from the parent process.
2. Daemonize the currently running process (<tt>Daemons.daemonize</tt>)
plus the already existing mode to control your scripts (<tt>Daemons.run("script.rb")</tt>)
* Improved documentation (for example "How does the daemonization process work?")
* Improved "simulation mode" (<tt>:ontop</tt> option)
* Some minor bugfixes
== Release 0.3.0: April 21, 2005
* New monitor functionality: automatic restarting of your applications if they crash
* 'restart' command fixed
* '--force' command modifier (please refer to the documentation)
* Some more bugfixes and improvements
== Release 0.2.1: Mar 21, 2005
* Bugfix for a problem with the 'status' command
== Release 0.2.0: Mar 21, 2005
* Exception backtrace functionality added
* Exec functionality added
* More examples added
* New commands: status, zap
== Release 0.0.1: Feb 8, 2005
* Initial release
|