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.diff -r1.1.1.1 -r1.2 pkgsrc/misc/ruby-daemons/DESCR
(jlam)
@@ -1,4 +1,7 @@ | @@ -1,4 +1,7 @@ | |||
1 | daemons provides an easy way to wrap existing ruby scripts (for | 1 | Daemons provides an easy way to wrap existing ruby scripts (for example | |
2 | example a self-written server) to be run as a daemon and to be | 2 | a self-written server) to be run as a daemon and to be controlled by | |
3 | controlled by simple start/stop/restart commands. daemons can also | 3 | simple start/stop/restart commands. You can also call blocks as daemons | |
4 | run and control blocks of Ruby code in a daemon process. | 4 | and control them from the parent or just daemonize the current process. | |
5 | Besides this basic functionality, daemons offers many advanced features | |||
6 | like exception backtracing and logging (in case your ruby script crashes) | |||
7 | and monitoring and automatic restarting of your processes if they crash. |
@@ -1,13 +1,48 @@ | @@ -1,13 +1,48 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1.1.1 2006/10/14 05:51:18 minskim Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2008/04/04 15:19:57 jlam Exp $ | |
2 | ${RUBY_SITELIBDIR}/daemons.rb | 2 | ${GEM_HOME}/cache/daemons-${PKGVERSION}.gem | |
3 | ${RUBY_SITELIBDIR}/daemons/application.rb | 3 | ${GEM_LIBDIR}/LICENSE | |
4 | ${RUBY_SITELIBDIR}/daemons/application_group.rb | 4 | ${GEM_LIBDIR}/README | |
5 | ${RUBY_SITELIBDIR}/daemons/cmdline.rb | 5 | ${GEM_LIBDIR}/Rakefile | |
6 | ${RUBY_SITELIBDIR}/daemons/controller.rb | 6 | ${GEM_LIBDIR}/Releases | |
7 | ${RUBY_SITELIBDIR}/daemons/daemonize.rb | 7 | ${GEM_LIBDIR}/TODO | |
8 | ${RUBY_SITELIBDIR}/daemons/exceptions.rb | 8 | ${GEM_LIBDIR}/examples/call/call.rb | |
9 | ${RUBY_SITELIBDIR}/daemons/monitor.rb | 9 | ${GEM_LIBDIR}/examples/call/call_monitor.rb | |
10 | ${RUBY_SITELIBDIR}/daemons/pid.rb | 10 | ${GEM_LIBDIR}/examples/daemonize/daemonize.rb | |
11 | ${RUBY_SITELIBDIR}/daemons/pidfile.rb | 11 | ${GEM_LIBDIR}/examples/run/ctrl_crash.rb | |
12 | ${RUBY_SITELIBDIR}/daemons/pidmem.rb | 12 | ${GEM_LIBDIR}/examples/run/ctrl_exec.rb | |
13 | @dirrm ${RUBY_SITELIBDIR}/daemons | 13 | ${GEM_LIBDIR}/examples/run/ctrl_exit.rb | |
14 | ${GEM_LIBDIR}/examples/run/ctrl_keep_pid_files.rb | |||
15 | ${GEM_LIBDIR}/examples/run/ctrl_monitor.rb | |||
16 | ${GEM_LIBDIR}/examples/run/ctrl_multiple.rb | |||
17 | ${GEM_LIBDIR}/examples/run/ctrl_normal.rb | |||
18 | ${GEM_LIBDIR}/examples/run/ctrl_ontop.rb | |||
19 | ${GEM_LIBDIR}/examples/run/ctrl_optionparser.rb | |||
20 | ${GEM_LIBDIR}/examples/run/ctrl_proc.rb | |||
21 | ${GEM_LIBDIR}/examples/run/ctrl_proc.rb.output | |||
22 | ${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb | |||
23 | ${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb.output | |||
24 | ${GEM_LIBDIR}/examples/run/ctrl_proc_simple.rb | |||
25 | ${GEM_LIBDIR}/examples/run/myserver.rb | |||
26 | ${GEM_LIBDIR}/examples/run/myserver_crashing.rb | |||
27 | ${GEM_LIBDIR}/examples/run/myserver_crashing.rb.output | |||
28 | ${GEM_LIBDIR}/examples/run/myserver_exiting.rb | |||
29 | ${GEM_LIBDIR}/lib/daemons.rb | |||
30 | ${GEM_LIBDIR}/lib/daemons/application.rb | |||
31 | ${GEM_LIBDIR}/lib/daemons/application_group.rb | |||
32 | ${GEM_LIBDIR}/lib/daemons/cmdline.rb | |||
33 | ${GEM_LIBDIR}/lib/daemons/controller.rb | |||
34 | ${GEM_LIBDIR}/lib/daemons/daemonize.rb | |||
35 | ${GEM_LIBDIR}/lib/daemons/exceptions.rb | |||
36 | ${GEM_LIBDIR}/lib/daemons/monitor.rb | |||
37 | ${GEM_LIBDIR}/lib/daemons/pid.rb | |||
38 | ${GEM_LIBDIR}/lib/daemons/pidfile.rb | |||
39 | ${GEM_LIBDIR}/lib/daemons/pidmem.rb | |||
40 | ${GEM_LIBDIR}/setup.rb | |||
41 | ${GEM_HOME}/specifications/daemons-${PKGVERSION}.gemspec | |||
42 | @dirrm ${GEM_LIBDIR}/lib/daemons | |||
43 | @dirrm ${GEM_LIBDIR}/lib | |||
44 | @dirrm ${GEM_LIBDIR}/examples/run | |||
45 | @dirrm ${GEM_LIBDIR}/examples/daemonize | |||
46 | @dirrm ${GEM_LIBDIR}/examples/call | |||
47 | @dirrm ${GEM_LIBDIR}/examples | |||
48 | @dirrm ${GEM_LIBDIR} |
@@ -1,16 +1,12 @@ | @@ -1,16 +1,12 @@ | |||
1 | # $NetBSD: Makefile,v 1.5 2007/10/16 04:09:04 minskim Exp $ | 1 | # $NetBSD: Makefile,v 1.6 2008/04/04 15:19:57 jlam Exp $ | |
2 | 2 | |||
3 | DISTNAME= daemons-1.0.8 | 3 | DISTNAME= daemons-1.0.10 | |
4 | PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME} | |
5 | CATEGORIES= misc ruby | 5 | CATEGORIES= misc | |
6 | MASTER_SITES= http://rubyforge.org/frs/download.php/25776/ | |||
7 | EXTRACT_SUFX= .tgz | |||
8 | 6 | |||
9 | MAINTAINER= minskim@NetBSD.org | 7 | MAINTAINER= minskim@NetBSD.org | |
10 | HOMEPAGE= http://daemons.rubyforge.org/ | 8 | HOMEPAGE= http://daemons.rubyforge.org/ | |
11 | COMMENT= Toolkit to convert Ruby scripts to a daemon | 9 | COMMENT= Toolkit to convert Ruby scripts to a daemon | |
12 | 10 | |||
13 | USE_RUBY_SETUP= yes | 11 | .include "../../misc/rubygems/rubygem.mk" | |
14 | ||||
15 | .include "../../lang/ruby/modules.mk" | |||
16 | .include "../../mk/bsd.pkg.mk" | 12 | .include "../../mk/bsd.pkg.mk" |
@@ -1,5 +1,5 @@ | @@ -1,5 +1,5 @@ | |||
1 | $NetBSD: distinfo,v 1.5 2007/10/16 04:09:04 minskim Exp $ | 1 | $NetBSD: distinfo,v 1.6 2008/04/04 15:19:57 jlam Exp $ | |
2 | 2 | |||
3 | SHA1 (daemons-1.0.8.tgz) = abd9e2b503db62120ad7702f0444ba422aa66b3a | 3 | SHA1 (daemons-1.0.10.gem) = 61ad4530249aab8c87c833757127cb593815b88c | |
4 | RMD160 (daemons-1.0.8.tgz) = 8754ad810033053d4144a9a01fa58aff06752714 | 4 | RMD160 (daemons-1.0.10.gem) = cee32913a4be62e308e1ae0f61edf869f45a0566 | |
5 | Size (daemons-1.0.8.tgz) = 27662 bytes | 5 | Size (daemons-1.0.10.gem) = 31232 bytes |