From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/897 Path: news.gmane.org!not-for-mail From: Charlie Brady Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: run scripts Date: Mon, 17 Oct 2005 20:22:58 -0400 (EDT) Message-ID: References: <43458F4B.5050903@zilli.gulinuxsul.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: sea.gmane.org 1129595049 21688 80.91.229.2 (18 Oct 2005 00:24:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2005 00:24:09 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-1133-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Oct 18 02:24:07 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1ERfFw-0007pl-5Z for gcsg-supervision@gmane.org; Tue, 18 Oct 2005 02:23:04 +0200 Original-Received: (qmail 25878 invoked by uid 76); 18 Oct 2005 00:23: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 25872 invoked from network); 18 Oct 2005 00:23:24 -0000 X-X-Sender: charlieb@e-smith.charlieb.ott.istop.com Original-To: Daniel Zilli In-Reply-To: <43458F4B.5050903@zilli.gulinuxsul.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:897 Archived-At: On Thu, 6 Oct 2005, Daniel Zilli wrote: > I'm start working with runit and found it great. I would like to migrate > all my rc.d scripts (slackware 10.2) to runit scheme. Some scripts are > easy other hard to migrate. I would like some advise. What do I need > consider when writing runit scripts ? What's critically important is that the program must keep running, and must not "put itself into the background" or "daemonize itself". What's also important is that the TERM signal will actually cause the process to shut down. A few badly behaved programs don't do that - mysql in particular. It's common practice to have programs log to stderr rather than via syslog.