From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1726 Path: news.gmane.org!not-for-mail From: Robin Bowes Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: configurable path to ./supervise/ Date: Fri, 18 Apr 2008 22:41:41 +0100 Message-ID: <48091595.1040101@robinbowes.com> References: <43362.24.8.235.144.1208550740.squirrel@www.xagasoft.com> 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 1208588969 11152 80.91.229.12 (19 Apr 2008 07:09:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Apr 2008 07:09:29 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1964-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Apr 19 09:10:06 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 1JmyLI-0003ce-7w for gcsg-supervision@gmane.org; Fri, 18 Apr 2008 23:42:00 +0200 Original-Received: (qmail 11672 invoked by uid 76); 18 Apr 2008 21:41:40 -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 11661 invoked from network); 18 Apr 2008 21:41:39 -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: <43362.24.8.235.144.1208550740.squirrel@www.xagasoft.com> X-Enigmail-Version: 0.95.6 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1726 Archived-At: Mike wrote: > > I just tested it, "into an existing directory" is right. > > I created this service: > > test > supervise -> /var/run/sv-test > run > log > supervise -> /var/run/sv-test-log > run > main -> /var/log/sv-test > > I did not create the directories /var/run/sv-test or /var/run/sv-test-log, > runit did that for me. I did create /var/log/sv-test, and set permissions > on it. > > This works just fine, and is actually pretty cool. > > Also, I tried this same thing with making test/log/supervise point to > /var/run/sv-test/log, it also worked. makes it a little neater... OK, so let me get my head round this... The aim is to keep config files in /etc, but state information (supervise) in /var/ somewhere (and logs in /var/log/ somewhere) Assuming I have the following dirs already created: /etc/sv /var/run/sv /var/log/sv 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 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 Hey, cool - that works! Nice one! R.