From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1718 Path: news.gmane.org!not-for-mail From: Robin Bowes Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: configurable path to ./supervise/ Date: Sat, 19 Apr 2008 00:39:11 +0100 Message-ID: <4809311F.3060804@robinbowes.com> References: <43362.24.8.235.144.1208550740.squirrel@www.xagasoft.com> <48091595.1040101@robinbowes.com> <20080418221145.GL1498@home.power> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1208586185 1690 80.91.229.12 (19 Apr 2008 06:23:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 06:23:05 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1972-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Apr 19 08:23:40 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 1Jn0Ax-000723-DO for gcsg-supervision@gmane.org; Sat, 19 Apr 2008 01:39:27 +0200 Original-Received: (qmail 29049 invoked by uid 76); 18 Apr 2008 23:39:08 -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 29039 invoked from network); 18 Apr 2008 23:39:08 -0000 X-Spam-Status: No, hits=-4.4 required=8.0 tests=ALL_TRUSTED,BAYES_00 X-Spam-Check-By: batmobile.robinbowes.com User-Agent: Thunderbird 2.0.0.12 (X11/20080226) In-Reply-To: <20080418221145.GL1498@home.power> X-Enigmail-Version: 0.95.6 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1718 Archived-At: Alex Efros wrote: > 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 No. /service is equivalent to /var/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 No, you create the service elsewhere and symlink it to /service. > >> 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/. :) It's a different way of doing things. To fit in with FHS, certain things should go in certain places. That's the reason to do it "my" way. I'm not arguing that it's better, or right, but this is the reason. R.