runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d285e569c20a2f73353d3e641c9d8c775dcbf1af
parent 46ce3320fab309a55725ba864d88f1634dfd43a7
Author: Gerrit Pape <pape@smarden.org>
Date:   Sun,  9 Mar 2003 14:05:49 +0000

  * runsvdir.c, runsv.c: close-on-exec file descriptors of current dir and
    lock files (thx Lukas Beeler).
0.8.1.

Diffstat:
MMakefile | 2+-
Mdebian/changelog | 6++++++
Mdebian/rules | 28++++++++++++++--------------
Mdoc/install.html | 10+++++-----
Mdoc/replaceinit.html | 4++--
Mdoc/upgrade.html | 2+-
Mpackage/CHANGES | 7+++++++
Mpackage/README | 2+-
Mpackage/upgrade | 4++--
Msrc/runsv.c | 2++
Msrc/runsvdir.c | 1+
11 files changed, 42 insertions(+), 26 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ DESTDIR= -PACKAGE=runit-0.8.0 +PACKAGE=runit-0.8.1 DIRS=doc man etc package src MANPAGES=runit.8 runit-init.8 runsvdir.8 runsv.8 svwaitdown.8 svwaitup.8 \ utmpset.8 runsvchdir.8 runsvstat.8 runsvctrl.8 diff --git a/debian/changelog b/debian/changelog @@ -1,3 +1,9 @@ +runit (0.8.1-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape <pape@smarden.org> Sun, 9 Mar 2003 15:02:54 +0100 + runit (0.8.0-1) unstable; urgency=low * new upstream version. diff --git a/debian/rules b/debian/rules @@ -26,11 +26,11 @@ build-arch-stamp: # Add here command to compile/build the package. # $(MAKE) - tar xfzvp runit-0.8.0.tar.gz + tar xfzvp runit-0.8.1.tar.gz ( \ set -e; \ - cd admin/runit-0.8.0/src; \ - ln -s runit-0.8.0 runit; mv runit ../..; \ + cd admin/runit-0.8.1/src; \ + ln -s runit-0.8.1 runit; mv runit ../..; \ echo 'diet -v -Os gcc -O2 -Wall' >conf-cc; \ echo 'diet -v -Os gcc -s -Os -pipe' >conf-ld; \ $(MAKE); \ @@ -74,26 +74,26 @@ install: build # $(MAKE) install DESTDIR=$(CURDIR)/debian/runit # runit - install -m0500 admin/runit-0.8.0/src/runit \ + install -m0500 admin/runit-0.8.1/src/runit \ $(CURDIR)/debian/runit/sbin/runit - install -m0500 admin/runit-0.8.0/src/runit-init \ + install -m0500 admin/runit-0.8.1/src/runit-init \ $(CURDIR)/debian/runit/sbin/runit-init - install -m0755 admin/runit-0.8.0/src/runsvdir \ + install -m0755 admin/runit-0.8.1/src/runsvdir \ $(CURDIR)/debian/runit/usr/bin/runsvdir - install -m0755 admin/runit-0.8.0/src/runsv \ + install -m0755 admin/runit-0.8.1/src/runsv \ $(CURDIR)/debian/runit/usr/bin/runsv - install -m0755 admin/runit-0.8.0/src/runsvchdir \ + install -m0755 admin/runit-0.8.1/src/runsvchdir \ $(CURDIR)/debian/runit/usr/sbin/runsvchdir - install -m0755 admin/runit-0.8.0/src/svwaitdown \ + install -m0755 admin/runit-0.8.1/src/svwaitdown \ $(CURDIR)/debian/runit/usr/bin/svwaitdown - install -m0755 admin/runit-0.8.0/src/svwaitup \ + install -m0755 admin/runit-0.8.1/src/svwaitup \ $(CURDIR)/debian/runit/usr/bin/svwaitup - install -m0755 admin/runit-0.8.0/src/utmpset \ + install -m0755 admin/runit-0.8.1/src/utmpset \ $(CURDIR)/debian/runit/usr/sbin/utmpset - install -m0755 admin/runit-0.8.0/src/runsvstat \ + install -m0755 admin/runit-0.8.1/src/runsvstat \ $(CURDIR)/debian/runit/usr/bin/runsvstat - install -m0755 admin/runit-0.8.0/src/runsvctrl \ + install -m0755 admin/runit-0.8.1/src/runsvctrl \ $(CURDIR)/debian/runit/usr/bin/runsvctrl # install -m0700 debian/1 \ @@ -146,7 +146,7 @@ binary-arch: build install # dh_installexamples -a dh_installman -a admin/runit/man/*.8 # dh_undocumented -a - dh_installchangelogs -a admin/runit-0.8.0/package/CHANGES + dh_installchangelogs -a admin/runit-0.8.1/package/CHANGES dh_strip -a # dh_link -a dh_compress -a diff --git a/doc/install.html b/doc/install.html @@ -13,14 +13,14 @@ Check that you have the recent version of <a href="http://cr.yp.to/daemontools.html">daemontools</a> installed. <p> Download -<a href="runit-0.8.0.tar.gz">runit-0.8.0.tar.gz</a> into <tt>/package</tt> +<a href="runit-0.8.1.tar.gz">runit-0.8.1.tar.gz</a> into <tt>/package</tt> and unpack the archive <pre> # cd /package - # gunzip runit-0.8.0.tar - # tar -xpf runit-0.8.0.tar - # rm runit-0.8.0.tar - # cd admin/runit-0.8.0 + # gunzip runit-0.8.1.tar + # tar -xpf runit-0.8.1.tar + # rm runit-0.8.1.tar + # cd admin/runit-0.8.1 </pre> Compile and install the <i>runit</i> programs <pre> diff --git a/doc/replaceinit.html b/doc/replaceinit.html @@ -107,7 +107,7 @@ default Unix process no 1 <i>runit</i>. </pre> To report success: <pre> - # ( uname -a ; cat /etc/runit/[123] ) | mail pape-runit-0.8.0@smarden.org + # ( uname -a ; cat /etc/runit/[123] ) | mail pape-runit-0.8.1@smarden.org </pre> <hr> @@ -188,7 +188,7 @@ Use <b>init 6</b> to reboot and <b>init 0</b> to halt a system that runs <p> To report success: <pre> - # ( uname -a ; cat /etc/runit/[123] ) | mail pape-runit-0.8.0@smarden.org + # ( uname -a ; cat /etc/runit/[123] ) | mail pape-runit-0.8.1@smarden.org </pre> <h3>Step 5: Service migration</h3> The goal is to migrate all services from <i>/etc/rc.*</i> scheme to the diff --git a/doc/upgrade.html b/doc/upgrade.html @@ -10,7 +10,7 @@ <h1>runit - upgrading from previous versions</h1> <hr> -<h3>0.7.x to 0.8.0</h3> +<h3>0.7.x to 0.8.0 or 0.8.1</h3> With this version <i>runit</i>'s handling of its magic files has changed slightly for better support of read-only root filesystems. You should adapt stages 1 and 3 and <tt>ctrlaltdel</tt> to set file diff --git a/package/CHANGES b/package/CHANGES @@ -1,3 +1,10 @@ +runit 0.8.1 +Sun, 09 Mar 2003 15:02:30 +0100 + * runsvdir.c, runsv.c: close-on-exec file descriptors of current dir and + lock files (thx Lukas Beeler). + * doc/runscripts.html: add contributed run scripts (thx Robin S. Socha, + Claus Alboege, Paul Jarc, clemens fischer). + runit 0.8.0 Tue, 25 Feb 2003 16:17:34 +0100 * doc/benefits.html: new. diff --git a/package/README b/package/README @@ -1,3 +1,3 @@ -Copyright 2001-2002 +Copyright 2001-2003 G. Pape http://smarden.org/runit/ diff --git a/package/upgrade b/package/upgrade @@ -7,9 +7,9 @@ test -d src || ( echo 'Wrong working directory.'; exit 1 ) here=`env - PATH=$PATH pwd` parent=`dirname $here` -echo 'Creating symlink runit -> runit-0.8.0...' +echo 'Creating symlink runit -> runit-0.8.1...' rm -f runit -ln -s runit-0.8.0 runit +ln -s runit-0.8.1 runit mv -f runit .. echo 'Making command links in /command...' diff --git a/src/runsv.c b/src/runsv.c @@ -371,12 +371,14 @@ int main(int argc, char **argv) { if ((svd[0].fdlock =open_append("supervise/lock")) == -1) fatal("unable to open lock"); if (lock_exnb(svd[0].fdlock) == -1) fatal("unable to lock"); + coe(svd[0].fdlock); if (haslog) { mkdir("log/supervise", 0700); if ((svd[1].fdlock =open_append("log/supervise/lock")) == -1) fatal("unable to open log/lock"); if (lock_ex(svd[1].fdlock) == -1) fatal("unable to log/lock"); + coe(svd[1].fdlock); } fifo_make("supervise/control", 0600); diff --git a/src/runsvdir.c b/src/runsvdir.c @@ -181,6 +181,7 @@ int main(int argc, char **argv) { } if ((curdir =open_read(".")) == -1) fatal("unable to open current directory", 0); + coe(curdir); taia_now(&stampcheck);