From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/776 Path: news.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: OT: /package and /service Date: Tue, 19 Apr 2005 14:54:46 -0400 Organization: What did you have in mind? A short, blunt, human pyramid? Message-ID: References: <20050419183907.GA28253@tranquility.scriptkitchen.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1113936656 9343 80.91.229.2 (19 Apr 2005 18:50:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 19 Apr 2005 18:50:56 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1012-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Apr 19 20:50:50 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1DNxnx-0000Up-Ie for gcsg-supervision@gmane.org; Tue, 19 Apr 2005 20:50:38 +0200 Original-Received: (qmail 28036 invoked by uid 76); 19 Apr 2005 18:55:11 -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 28031 invoked from network); 19 Apr 2005 18:55:11 -0000 Original-To: Payal Rathod In-Reply-To: <20050419183907.GA28253@tranquility.scriptkitchen.com> (Payal Rathod's message of "Tue, 19 Apr 2005 14:39:07 -0400") Mail-Copies-To: nobody Mail-Followup-To: Payal Rathod , supervision@list.skarnet.org Original-Lines: 41 User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:776 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:776 Payal Rathod wrote: > 1. Why is /package made with sticky bit set? To simplify code that looks for package directories. Category directories (which may contain packages or subcategories) are sticky, and package directories are not sticky. /package contains categories, so its consistent to make it sticky. Otherwise, code would have to treat /package itself specially instead of just checkign for the sticky bit to decide whether to descend into subdirectories. > 2. In /service//supervise/ there are 4 files, > 2 fifos - control and ok > 2 normal files - lock and status > Why are fifos used here? Which document explains this? It's not documented. supervise/ok is used by svok and svc to detect whether supervise is running. A regular file wouldn't work for this, because the file could be in the same state even if supervise died. supervise/control is used by svc to send commands to supervise. There are ways to use regular files instead, but the pipe is simpler. > But what about svscan itself? What if it dies? Who restarts it? I run svscan as process 1, so I don't have to worry about it. With svscanboot, I believe the intent is that init (on SysV systems, anyway) would restart svscan if it dies. But it won't actually be restarted until readproctitle exits too, and that won't normally happen until all supervises exit. > Also is there any documentation which says why are there so many dots in > that script and what do they signify? Those dots are replaced by the data read by readproctitle. The number of dots determines how much of that log you'll be able to see at one time. paul