Permalink
Browse files

added logging, cleaned up website, other cleanups

git-svn-id: svn://rubyforge.org/var/svn/simple-daemon/trunk@2 48732570-4cb9-45bf-89ee-9725a383fa0b
  • Loading branch information...
1 parent c70b13e commit 7bed443de6f9e9d50a5e2f417da4a3539f95ed3a jonhdahl committed Jul 9, 2007
Showing with 67 additions and 4,241 deletions.
  1. +7 −1 History.txt
  2. +1 −1 License.txt
  3. +1 −0 README.txt
  4. +0 −152 doc/classes/SimpleDaemon/Base.html
  5. +0 −18 doc/classes/SimpleDaemon/Base.src/M000006.html
  6. +0 −18 doc/classes/SimpleDaemon/Base.src/M000007.html
  7. +0 −161 doc/classes/SimpleDaemon/Controller.html
  8. +0 −29 doc/classes/SimpleDaemon/Controller.src/M000001.html
  9. +0 −29 doc/classes/SimpleDaemon/Controller.src/M000002.html
  10. +0 −24 doc/classes/SimpleDaemon/Controller.src/M000003.html
  11. +0 −146 doc/classes/SimpleDaemon/PidFile.html
  12. +0 −18 doc/classes/SimpleDaemon/PidFile.src/M000004.html
  13. +0 −18 doc/classes/SimpleDaemon/PidFile.src/M000005.html
  14. +0 −1 doc/created.rid
  15. +0 −115 doc/files/History_txt.html
  16. +0 −129 doc/files/License_txt.html
  17. +0 −108 doc/files/README_txt.html
  18. +0 −101 doc/files/lib/simple-daemon/version_rb.html
  19. +0 −109 doc/files/lib/simple-daemon_rb.html
  20. +0 −165 doc/files/website/index_txt.html
  21. +0 −29 doc/fr_class_index.html
  22. +0 −32 doc/fr_file_index.html
  23. +0 −33 doc/fr_method_index.html
  24. +0 −24 doc/index.html
  25. +0 −208 doc/rdoc-style.css
  26. +0 −4 lib/sd.rb
  27. +0 −9 lib/sd/version.rb
  28. +12 −5 lib/simple-daemon.rb
  29. +1 −1 lib/simple-daemon/version.rb
  30. BIN pkg/simple-daemon-0.0.2.gem
  31. BIN pkg/simple-daemon-0.0.2.tgz
  32. +0 −4 pkg/simple-daemon-0.0.2/History.txt
  33. +0 −20 pkg/simple-daemon-0.0.2/License.txt
  34. +0 −17 pkg/simple-daemon-0.0.2/Manifest.txt
  35. +0 −3 pkg/simple-daemon-0.0.2/README.txt
  36. +0 −138 pkg/simple-daemon-0.0.2/Rakefile
  37. +0 −68 pkg/simple-daemon-0.0.2/lib/simple-daemon.rb
  38. +0 −9 pkg/simple-daemon-0.0.2/lib/simple-daemon/version.rb
  39. +0 −67 pkg/simple-daemon-0.0.2/scripts/txt2html
  40. +0 −1,585 pkg/simple-daemon-0.0.2/setup.rb
  41. +0 −11 pkg/simple-daemon-0.0.2/spec/simple-daemon_spec.rb
  42. +0 −1 pkg/simple-daemon-0.0.2/spec/spec.opts
  43. +0 −1 pkg/simple-daemon-0.0.2/spec/spec_helper.rb
  44. +0 −93 pkg/simple-daemon-0.0.2/website/index.html
  45. +0 −38 pkg/simple-daemon-0.0.2/website/index.txt
  46. +0 −285 pkg/simple-daemon-0.0.2/website/javascripts/rounded_corners_lite.inc.js
  47. +0 −138 pkg/simple-daemon-0.0.2/website/stylesheets/screen.css
  48. +0 −48 pkg/simple-daemon-0.0.2/website/template.rhtml
  49. +0 −11 spec/sd_spec.rb
  50. +26 −10 website/index.html
  51. +19 −6 website/index.txt
View
@@ -1,4 +1,10 @@
-== 0.0.1 2007-07-07
+== 0.0.3 2007-07-08
+
+* 1 major enhancement:
+ * Added logging
+
+== 0.0.2 2007-07-07
* 1 major enhancement:
* Initial release
+
View
@@ -1,4 +1,4 @@
-Copyright (c) 2007 FIXME full name
+Copyright (c) 2007 Jonathan Dahl
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
View
@@ -1,3 +1,4 @@
README for simple-daemon
========================
+Simple 70-line daemon module for Ruby. Add daemon functionality to a Ruby class (start, stop, restart; pid file; logging). Built on a module by Sharon Rosner released to DZone Snippets.
@@ -1,152 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Class: SimpleDaemon::Base</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Class</strong></td>
- <td class="class-name-in-header">SimpleDaemon::Base</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../../files/lib/simple-daemon_rb.html">
- lib/simple-daemon.rb
- </a>
- <br />
- </td>
- </tr>
-
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
- Object
- </td>
- </tr>
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000007">daemonize</a>&nbsp;&nbsp;
- <a href="#M000006">pid_fn</a>&nbsp;&nbsp;
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000007" class="method-detail">
- <a name="M000007"></a>
-
- <div class="method-heading">
- <a href="Base.src/M000007.html" target="Code" class="method-signature"
- onclick="popupCode('Base.src/M000007.html');return false;">
- <span class="method-name">daemonize</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
- <div id="method-M000006" class="method-detail">
- <a name="M000006"></a>
-
- <div class="method-heading">
- <a href="Base.src/M000006.html" target="Code" class="method-signature"
- onclick="popupCode('Base.src/M000006.html');return false;">
- <span class="method-name">pid_fn</span><span class="method-args">()</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
-
- </div>
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>pid_fn (SimpleDaemon::Base)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/simple-daemon.rb, line 8</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pid_fn</span>
- <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">WorkingDirectory</span>, <span class="ruby-node">&quot;#{name}.pid&quot;</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
@@ -1,18 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
-<head>
- <title>daemonize (SimpleDaemon::Base)</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><span class="ruby-comment cmt"># File lib/simple-daemon.rb, line 12</span>
- <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">daemonize</span>
- <span class="ruby-constant">Controller</span>.<span class="ruby-identifier">daemonize</span>(<span class="ruby-keyword kw">self</span>)
- <span class="ruby-keyword kw">end</span></pre>
-</body>
-</html>
@@ -1,161 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<!DOCTYPE html
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
- <title>Module: SimpleDaemon::Controller</title>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-
-
-
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Module</strong></td>
- <td class="class-name-in-header">SimpleDaemon::Controller</td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
- <a href="../../files/lib/simple-daemon_rb.html">
- lib/simple-daemon.rb
- </a>
- <br />
- </td>
- </tr>
-
- </table>
- </div>
- <!-- banner header -->
-
- <div id="bodyContent">
-
-
-
- <div id="contextContent">
-
-
-
- </div>
-
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
- <a href="#M000001">daemonize</a>&nbsp;&nbsp;
- <a href="#M000002">start</a>&nbsp;&nbsp;
- <a href="#M000003">stop</a>&nbsp;&nbsp;
- </div>
- </div>
-
- </div>
-
-
- <!-- if includes -->
-
- <div id="section">
-
-
-
-
-
-
-
-
- <!-- if method_list -->
- <div id="methods">
- <h3 class="section-bar">Public Class methods</h3>
-
- <div id="method-M000001" class="method-detail">
- <a name="M000001"></a>
-
- <div class="method-heading">
- <a href="Controller.src/M000001.html" target="Code" class="method-signature"
- onclick="popupCode('Controller.src/M000001.html');return false;">
- <span class="method-name">daemonize</span><span class="method-args">(daemon)</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
- <div id="method-M000002" class="method-detail">
- <a name="M000002"></a>
-
- <div class="method-heading">
- <a href="Controller.src/M000002.html" target="Code" class="method-signature"
- onclick="popupCode('Controller.src/M000002.html');return false;">
- <span class="method-name">start</span><span class="method-args">(daemon)</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
- <div id="method-M000003" class="method-detail">
- <a name="M000003"></a>
-
- <div class="method-heading">
- <a href="Controller.src/M000003.html" target="Code" class="method-signature"
- onclick="popupCode('Controller.src/M000003.html');return false;">
- <span class="method-name">stop</span><span class="method-args">(daemon)</span>
- </a>
- </div>
-
- <div class="method-description">
- </div>
- </div>
-
-
- </div>
-
-
- </div>
-
-
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
Oops, something went wrong.

0 comments on commit 7bed443

Please sign in to comment.