summaryrefslogtreecommitdiff
path: root/misc/ruby-daemons
diff options
context:
space:
mode:
authorjlam <jlam>2008-04-04 15:19:57 +0000
committerjlam <jlam>2008-04-04 15:19:57 +0000
commit56f89e3152f03ec08a47ff1fd312c4af564d4fd6 (patch)
tree0fcd2e52cac24f757ff5d842bd6bb07177443a4e /misc/ruby-daemons
parentc36f70bc7a3eeec1c9209c7795ece91874c4abfc (diff)
downloadpkgsrc-56f89e3152f03ec08a47ff1fd312c4af564d4fd6.tar.gz
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.
Diffstat (limited to 'misc/ruby-daemons')
-rw-r--r--misc/ruby-daemons/DESCR11
-rw-r--r--misc/ruby-daemons/Makefile12
-rw-r--r--misc/ruby-daemons/PLIST61
-rw-r--r--misc/ruby-daemons/distinfo8
4 files changed, 63 insertions, 29 deletions
diff --git a/misc/ruby-daemons/DESCR b/misc/ruby-daemons/DESCR
index 39c0e628338..712a84c5dbc 100644
--- a/misc/ruby-daemons/DESCR
+++ b/misc/ruby-daemons/DESCR
@@ -1,4 +1,7 @@
-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.
+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. You can also call blocks as daemons
+and control them from the parent or just daemonize the current process.
+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.
diff --git a/misc/ruby-daemons/Makefile b/misc/ruby-daemons/Makefile
index 81a01ae3c35..08322d776dc 100644
--- a/misc/ruby-daemons/Makefile
+++ b/misc/ruby-daemons/Makefile
@@ -1,16 +1,12 @@
-# $NetBSD: Makefile,v 1.5 2007/10/16 04:09:04 minskim Exp $
+# $NetBSD: Makefile,v 1.6 2008/04/04 15:19:57 jlam Exp $
-DISTNAME= daemons-1.0.8
+DISTNAME= daemons-1.0.10
PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME}
-CATEGORIES= misc ruby
-MASTER_SITES= http://rubyforge.org/frs/download.php/25776/
-EXTRACT_SUFX= .tgz
+CATEGORIES= misc
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= http://daemons.rubyforge.org/
COMMENT= Toolkit to convert Ruby scripts to a daemon
-USE_RUBY_SETUP= yes
-
-.include "../../lang/ruby/modules.mk"
+.include "../../misc/rubygems/rubygem.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/misc/ruby-daemons/PLIST b/misc/ruby-daemons/PLIST
index 45c532fda4e..9daa16719d8 100644
--- a/misc/ruby-daemons/PLIST
+++ b/misc/ruby-daemons/PLIST
@@ -1,13 +1,48 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/14 05:51:18 minskim Exp $
-${RUBY_SITELIBDIR}/daemons.rb
-${RUBY_SITELIBDIR}/daemons/application.rb
-${RUBY_SITELIBDIR}/daemons/application_group.rb
-${RUBY_SITELIBDIR}/daemons/cmdline.rb
-${RUBY_SITELIBDIR}/daemons/controller.rb
-${RUBY_SITELIBDIR}/daemons/daemonize.rb
-${RUBY_SITELIBDIR}/daemons/exceptions.rb
-${RUBY_SITELIBDIR}/daemons/monitor.rb
-${RUBY_SITELIBDIR}/daemons/pid.rb
-${RUBY_SITELIBDIR}/daemons/pidfile.rb
-${RUBY_SITELIBDIR}/daemons/pidmem.rb
-@dirrm ${RUBY_SITELIBDIR}/daemons
+@comment $NetBSD: PLIST,v 1.2 2008/04/04 15:19:57 jlam Exp $
+${GEM_HOME}/cache/daemons-${PKGVERSION}.gem
+${GEM_LIBDIR}/LICENSE
+${GEM_LIBDIR}/README
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/Releases
+${GEM_LIBDIR}/TODO
+${GEM_LIBDIR}/examples/call/call.rb
+${GEM_LIBDIR}/examples/call/call_monitor.rb
+${GEM_LIBDIR}/examples/daemonize/daemonize.rb
+${GEM_LIBDIR}/examples/run/ctrl_crash.rb
+${GEM_LIBDIR}/examples/run/ctrl_exec.rb
+${GEM_LIBDIR}/examples/run/ctrl_exit.rb
+${GEM_LIBDIR}/examples/run/ctrl_keep_pid_files.rb
+${GEM_LIBDIR}/examples/run/ctrl_monitor.rb
+${GEM_LIBDIR}/examples/run/ctrl_multiple.rb
+${GEM_LIBDIR}/examples/run/ctrl_normal.rb
+${GEM_LIBDIR}/examples/run/ctrl_ontop.rb
+${GEM_LIBDIR}/examples/run/ctrl_optionparser.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc.rb.output
+${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb
+${GEM_LIBDIR}/examples/run/ctrl_proc_multiple.rb.output
+${GEM_LIBDIR}/examples/run/ctrl_proc_simple.rb
+${GEM_LIBDIR}/examples/run/myserver.rb
+${GEM_LIBDIR}/examples/run/myserver_crashing.rb
+${GEM_LIBDIR}/examples/run/myserver_crashing.rb.output
+${GEM_LIBDIR}/examples/run/myserver_exiting.rb
+${GEM_LIBDIR}/lib/daemons.rb
+${GEM_LIBDIR}/lib/daemons/application.rb
+${GEM_LIBDIR}/lib/daemons/application_group.rb
+${GEM_LIBDIR}/lib/daemons/cmdline.rb
+${GEM_LIBDIR}/lib/daemons/controller.rb
+${GEM_LIBDIR}/lib/daemons/daemonize.rb
+${GEM_LIBDIR}/lib/daemons/exceptions.rb
+${GEM_LIBDIR}/lib/daemons/monitor.rb
+${GEM_LIBDIR}/lib/daemons/pid.rb
+${GEM_LIBDIR}/lib/daemons/pidfile.rb
+${GEM_LIBDIR}/lib/daemons/pidmem.rb
+${GEM_LIBDIR}/setup.rb
+${GEM_HOME}/specifications/daemons-${PKGVERSION}.gemspec
+@dirrm ${GEM_LIBDIR}/lib/daemons
+@dirrm ${GEM_LIBDIR}/lib
+@dirrm ${GEM_LIBDIR}/examples/run
+@dirrm ${GEM_LIBDIR}/examples/daemonize
+@dirrm ${GEM_LIBDIR}/examples/call
+@dirrm ${GEM_LIBDIR}/examples
+@dirrm ${GEM_LIBDIR}
diff --git a/misc/ruby-daemons/distinfo b/misc/ruby-daemons/distinfo
index 6d376c6ada2..333168c1f16 100644
--- a/misc/ruby-daemons/distinfo
+++ b/misc/ruby-daemons/distinfo
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2007/10/16 04:09:04 minskim Exp $
+$NetBSD: distinfo,v 1.6 2008/04/04 15:19:57 jlam Exp $
-SHA1 (daemons-1.0.8.tgz) = abd9e2b503db62120ad7702f0444ba422aa66b3a
-RMD160 (daemons-1.0.8.tgz) = 8754ad810033053d4144a9a01fa58aff06752714
-Size (daemons-1.0.8.tgz) = 27662 bytes
+SHA1 (daemons-1.0.10.gem) = 61ad4530249aab8c87c833757127cb593815b88c
+RMD160 (daemons-1.0.10.gem) = cee32913a4be62e308e1ae0f61edf869f45a0566
+Size (daemons-1.0.10.gem) = 31232 bytes