Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2004 20:50:50 +0300
From:      Peter Pentchev <roam@ringlet.net>
To:        Norikatsu Shigemura <nork@FreeBSD.org>
Cc:        ports@FreeBSD.org
Subject:   Re: rcNG-fy sysutils/daemontools
Message-ID:  <20040630175050.GD979@straylight.m.ringlet.net>
In-Reply-To: <200406301716.i5UHFxsY040146@sakura.ninth-nine.com>
References:  <20040620070446.21a599c7.nork@FreeBSD.org> <20040622183550.GI46866@hal9000.halplant.com> <20040624151543.5cadaf83.nork@FreeBSD.org> <20040625162008.GC51175@hal9000.halplant.com> <20040629205443.638a0b27.nork@FreeBSD.org> <200406301408.i5UE8NGf044132@sakura.ninth-nine.com> <20040630161000.GB979@straylight.m.ringlet.net> <200406301716.i5UHFxsY040146@sakura.ninth-nine.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--x4pBfXISqBoDm8sr
Content-Type: text/plain; charset=windows-1251
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Jul 01, 2004 at 02:16:00AM +0900, Norikatsu Shigemura wrote:
> On Wed, 30 Jun 2004 19:10:00 +0300
> Peter Pentchev <roam@ringlet.net> wrote:
> > On Wed, Jun 30, 2004 at 11:08:29PM +0900, Norikatsu Shigemura wrote:
> > > Hi roam!
> > > 	Please update daemontools with following patch:-).
> > Ahh.. daemon(8) would indeed be a good idea :)

On second thoughts, daemon(8) might not be such a good idea after all.
Have you tested the startup script with your change?  At least on my
system, daemon(8) expects to be passed a program name (or path) and
arguments for that program as separate command-line parameters, and then
executes the program using execvp(3).  However, the string we are
passing is not a program name, not by a long shot :)  It's more suited
for execution via system(3) or, as it is, by 'sh -c'.  I don't think it
would be easy to convert it to daemon(8)-friendly format because of the
pipe involved: the best choice that comes to mind is something like
  /usr/sbin/daemon -f /bin/sh -c "$command ... | readproctitle ..."
=2E..which makes the use of daemon(8) kinda pointless :)

G'luck,
Peter

--=20
Peter Pentchev	roam@ringlet.net    roam@sbnd.net    roam@FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
No language can express every thought unambiguously, least of all this one.

--x4pBfXISqBoDm8sr
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFA4v167Ri2jRYZRVMRAqQ/AJ0UJI1wbboyOHTL4zbP7PBqz7+bwgCeNEJE
vyfR5jP1SVuqrXaWdthzMPo=
=gwf8
-----END PGP SIGNATURE-----

--x4pBfXISqBoDm8sr--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040630175050.GD979>