supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* runit for Debian GNU/Hurd
@ 2007-08-01 22:35 Thomas Schwinge
  2007-08-01 23:52 ` Thomas Schwinge
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Schwinge @ 2007-08-01 22:35 UTC (permalink / raw)
  To: debian-hurd; +Cc: supervision

[-- Attachment #1: Type: text/plain, Size: 2043 bytes --]

[CCed to <supervision@list.skarnet.org> purely for your information.]


Hello!

Michael, could you please do the following: apply the following patch to
the `runit' source package, run a Hurd package with the fifo patch I just
posted to bug-hurd
(<http://lists.gnu.org/archive/html/bug-hurd/2007-08/msg00002.html>; or
ask me to simply provide you with a fixed `/hurd/fifo' binary), build the
`runit' package and upload to GNUAB.


So far I don't really have an idea what is going wrong here, but I shall
describe what is supposed to happen:

`current' contains some data lines.  ``t2'' is written into `config'.
``foo'' is piped into the `svlogd' program.  The `svlogd' program will be
left running for three seconds.  During this three seconds the following
is supposed to happen inside the `svlogd' program: ``foo'' is appended to
`current'; two seconds after the last modification of `current' (remind
the ``t2'' configuration string in `config') the file `current' is
supposed to be rotated away and afterwards be empty.  What does happen on
a Hurd system is that apparently three seconds are not enough to do this
job (which I can't really believe...) or that something goes wrong when
`svlogd' is reading the last-modified time stamp of `current'.
Nevertheless, enlarging the time interval to five seconds is enough to
make it work as expected...


#v+
--- admin/runit-1.7.2/src/svlogd.check~	2007-08-02 00:16:35.910000000 +0200
+++ admin/runit-1.7.2/src/svlogd.check	2007-08-02 00:16:35.920000000 +0200
@@ -20,7 +20,7 @@
 cat "${ctmp}"/current
 
 echo t2 >"${ctmp}"/config
-( echo foo; sleep 3 ) |svlogd "${ctmp}"
+( echo foo; sleep 5 ) |svlogd "${ctmp}"
 echo $?
 cat "${ctmp}"/current
 
#v-

For being able to apply the patch, you first have to unpack the included
tarball.  This is most easily done by simply starting to build the
package, wait until the test suite fails (perhaps it'll also simply work
for you?  ;-), then apply the patch and resume the build.


Regards,
 Thomas

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: runit for Debian GNU/Hurd
  2007-08-01 22:35 runit for Debian GNU/Hurd Thomas Schwinge
@ 2007-08-01 23:52 ` Thomas Schwinge
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Schwinge @ 2007-08-01 23:52 UTC (permalink / raw)
  To: debian-hurd; +Cc: supervision

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]

[CCed to <supervision@list.skarnet.org> purely for your information.]


On Thu, Aug 02, 2007 at 12:35:57AM +0200, I wrote:
> [...], build the `runit' package and upload to GNUAB.

Some more information.

When installing the package, you'll hit this bug:
<http://savannah.gnu.org/bugs/?20656>.  Rebooting helps...

As the Hurd doesn't take `/etc/inittab''s content into account, you'll
have to add a line like ``runsvdir-start &'' to `/etc/rc.local'.  (Yes,
we could really be doing better...)


And yet another issue: if you run services that write to stdout / stderr,
then their messages won't show up in the ``ps -Aw | grep runsvdir''
output, but you'll get ``Resource lost'' error messages in there instead
and the services aren't guaranteed to function properly.  So, don't
forget to set up log sub-services.


Regards,
 Thomas

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 191 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-08-01 23:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-01 22:35 runit for Debian GNU/Hurd Thomas Schwinge
2007-08-01 23:52 ` Thomas Schwinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).