From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1725 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: configurable path to ./supervise/ Date: Sat, 19 Apr 2008 01:11:46 +0300 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20080418221145.GL1498@home.power> References: <43362.24.8.235.144.1208550740.squirrel@www.xagasoft.com> <48091595.1040101@robinbowes.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208588182 8078 80.91.229.12 (19 Apr 2008 06:56:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 06:56:22 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1965-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Apr 19 08:57:00 2008 connect(): Connection refused Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1Jmyom-0004UO-HC for gcsg-supervision@gmane.org; Sat, 19 Apr 2008 00:12:28 +0200 Original-Received: (qmail 16386 invoked by uid 76); 18 Apr 2008 22:12:09 -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 16381 invoked from network); 18 Apr 2008 22:12:09 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <48091595.1040101@robinbowes.com> User-Agent: Mutt/1.5.16 (2007-06-09) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1725 Archived-At: Hi! ... and now how it was originally designed for daemontools: > Assuming I have the following dirs already created: > > /etc/sv > /var/run/sv > /var/log/sv /service > To create a new service "test" with a log, I can do this: > > mkdir -p /etc/sv/test/log > mkdir -p /var/log/sv/test > ln -s ../../../var/run/sv/test /etc/sv/test/supervise > ln -s ../../../../var/run/sv/test/log/ /etc/sv/test/log/supervise > ln -s ../../../../var/log/sv/test /etc/sv/test/log/main mkdir -p /service/test/log/main > I use a generic log run file, so I can symlink that: > > ln -s ../../scripts/generic-log-run /etc/sv/test/log/run > > Then, create the service run file, and symlink /etc/sv/test into > /var/service. > > ln -s ../../etc/sv/test /var/service no differences here is we all doing something wrong when wanna split service into 3 parts? it's hard for me to believe djb wasn't aware about /var/run/ and /var/log/. :) -- WBR, Alex.