From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/920 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: clear proc log Date: Tue, 29 Nov 2005 13:47:28 +0100 Message-ID: <20051129124728.7641.qmail@d5b81a4de6596e.315fe32.mid.smarden.org> References: <20051123132508.GA25346@sta.duo> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133272398 21578 80.91.229.2 (29 Nov 2005 13:53:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2005 13:53:18 +0000 (UTC) Original-X-From: supervision-return-1156-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Nov 29 14:53:06 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1Eh4sx-0001GH-Or for gcsg-supervision@gmane.org; Tue, 29 Nov 2005 13:47:04 +0100 Original-Received: (qmail 9692 invoked by uid 76); 29 Nov 2005 12:47:24 -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 9687 invoked from network); 29 Nov 2005 12:47:24 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20051123132508.GA25346@sta.duo> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:920 Archived-At: On Wed, Nov 23, 2005 at 08:25:09AM -0500, George Georgalis wrote: > I've got some proc log I'd like to clear from the runsvdir entry in ps. > With readproctitle, I'd make a service and run "once" > > #!/bin/sh > yes '' | head -4000 | tr '\n' . > > But that is not working under runsvdir. How should I go about > clearing the dots? Also, any suggestions on adding the service runsvdir only writes stderr to the readproctitle log, not stdout. Adding `exec 1>&2` to the run script should help. > which is barfing to the log, and making each entry longer? I'm not sure I completely understand what you mean, any examples? Regards, Gerrit.