From: Gerrit Pape <pape@smarden.org>
To: supervision@list.skarnet.org
Subject: Re: check script
Date: Tue, 13 Mar 2007 10:44:28 +0000 [thread overview]
Message-ID: <20070313104428.8475.qmail@5f0221b5e9d16b.315fe32.mid.smarden.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0703121432480.31479@jmaa.math.ist.utl.pt>
On Mon, Mar 12, 2007 at 02:44:40PM +0000, Jorge Almeida wrote:
> I ran socklog-conf and it created a file /etc/sv/socklog-unix/check that
> looks like a run script:
> #!/bin/sh
> exec 2>/dev/null
> exec socklog-check unix /dev/log
> Can someone explain what is the purpose of /etc/sv/socklog-unix/check?
See http://smarden.org/runit/sv.8.html
It's run by 'sv start|restart|force-restart|check' and 'sv -v up'
to check whether the service is up and functional, and not only the
service daemon started. Here it checks whether a program is listening
on /dev/log.
The ./check script is optional, and good for service dependencies. For
services that run service daemons that use syslog() to write log
messages, 'sv start socklog-unix || exit' should be added to the run
script, to make sure that no log messages are lost on bootup because the
service daemon calls syslog() before the socklog-unix service actually
is listening on /dev/log.
HTH, Gerrit.
next prev parent reply other threads:[~2007-03-13 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-12 14:44 Jorge Almeida
2007-03-13 10:44 ` Gerrit Pape [this message]
2007-03-13 14:38 ` Jorge Almeida
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070313104428.8475.qmail@5f0221b5e9d16b.315fe32.mid.smarden.org \
--to=pape@smarden.org \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).