From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1070 Path: news.gmane.org!not-for-mail From: Joshua N Pritikin Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: service definition vs service activation Date: Wed, 8 Mar 2006 10:48:02 +0530 Message-ID: <20060308051802.GF6346@always.joy.eth.net> References: <20060306160542.18689.qmail@036bc12a5086b2.315fe32.mid.smarden.org> <20060306111338.2d8151ff@alloy.copperisle.com> <20060307183522.GB17273@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J+xDcZ1j08+V/OfU" X-Trace: sea.gmane.org 1141794534 23664 80.91.229.2 (8 Mar 2006 05:08:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Mar 2006 05:08:54 +0000 (UTC) Original-X-From: supervision-return-1306-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Mar 08 06:08:53 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FGquo-00045H-BW for gcsg-supervision@gmane.org; Wed, 08 Mar 2006 06:08:50 +0100 Original-Received: (qmail 14262 invoked by uid 76); 8 Mar 2006 05:09:11 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 14256 invoked from network); 8 Mar 2006 05:09:11 -0000 Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20060307183522.GB17273@home.power> X-PGP-Key: 06E3 3D22 D307 AAE6 ACB4 6B44 A9CA A794 A4A6 0BBD User-Agent: Mutt/1.5.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1070 Archived-At: --J+xDcZ1j08+V/OfU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 07, 2006 at 08:35:22PM +0200, Alex Efros wrote: > 1) Service definition directory can use symlinks to suit FHS: > /etc/sv/SERVICE/supervise -> /var/run/sv/SERVICE/ > /etc/sv/SERVICE/log/supervise -> /var/run/sv/SERVICE/log/ > and ./log/run can start svlogd with /var/log/SERVICE/ as param. > =20 > That way /etc/ will contain only static configuration files, while > logs and ./supervise/ dir will be on /var/. > Service activation directory is /var/service/ or /var/sv/. >=20 > I've tried this way, and found myself always forget to create > ./supervise symlinks BEFORE I start new service and runsv will create > ./supervise directories instead. This can be easy solved by using > script to create service directories, of course. >=20 > Ugly, but suit FHS. I think that's too ugly for mere pedantic FHS compliance. I'd prefer a small amount of read-only data on /var (run, finish, etc) rather than confront symlink hell. With symlinks, it is too comfusing if the run script uses relative paths (eg. envdir ./config and the like). --J+xDcZ1j08+V/OfU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFEDmkJqcqnlKSmC70RAsfJAJ4u0KNbtE9VBjSiFi5Vcl5PKB9NBwCfbCCW vABE/XLX36ntocpKVmMwuqA= =TQok -----END PGP SIGNATURE----- --J+xDcZ1j08+V/OfU--