From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2185 Path: news.gmane.org!not-for-mail From: Alex Efros Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit logging questions Date: Wed, 1 May 2013 00:01:19 +0300 Organization: http://powerman.name/ Message-ID: <20130430210118.GA7169@home.power> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1367355681 31146 80.91.229.3 (30 Apr 2013 21:01:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Apr 2013 21:01:21 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2419-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Apr 30 23:01:20 2013 Return-path: Envelope-to: gcsg-supervision@plane.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UXHfs-0006KV-Gf for gcsg-supervision@plane.gmane.org; Tue, 30 Apr 2013 23:01:20 +0200 Original-Received: (qmail 13599 invoked by uid 76); 30 Apr 2013 19:53:57 -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 13589 invoked from network); 30 Apr 2013 19:53:57 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2185 Archived-At: Hi! On Tue, Apr 30, 2013 at 08:43:10PM +0100, Raymond Barlow wrote: > Logging: I think if you just try to use it you'll get all answers, and faster than waiting for replies in list. > * Do you need to create 2 run scripts (/etc/sv/myservice/run, > /etc/sv/myservice/log/run)? Or does the log/run supersede the myservice/run > script? You need 2 run scripts. > * The directory specified in the log run script to svlogd (eg ./main)--does > this live in the log directory? I think relative path will be relative to service's ./log/ directory with run script - don't think svlogd will do any magic path mangling here, it should work just like in any other app. I'm using absolute paths to /var/log/service_name/. > * Do I need to create the log directory or does the svlogd directory do > that for me You have to create it. And set directory permissions. And, usually, put ./config file into that directory to configure log rotation. Yep, a lot of work. I remember in daemontools were some helper tools which help you create and configure new service and may do this for you, but I didn't used them for years so not really sure. > * Where does the log go? I've looked in this main directory, and it is > still empty. If you didn't see ./current log file in log directory then svlogd probably doesn't run (service not started or svlogd can't start because of wrong params or log directory permissions). -- WBR, Alex.