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
application.
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.
Authors:
--------
Thomas Uehlinger
- Sources inherited from project devel:languages:ruby:extensions
-
13
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Marvin1973:pcs/rubygem-daemons && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
daemons-1.1.2.gem | 0000033280 32.5 KB | |
rubygem-daemons.changes | 0000005150 5.03 KB | |
rubygem-daemons.spec | 0000002524 2.46 KB |
Revision 6 (latest revision is 29)
Marcus Rueckert (darix)
committed
(revision 6)
- update to version 1.1.2 * Fixed gemspec to include all needed files. - additional changes from 1.1.1 * Make the logging facilities work in :mode => :none (i.e. when calling Daemons.daemonize) (thanks to the input from Peter Hegedus). - additional changes from 1.1.0 * 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). - split out a doc package
Comments 0