From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1113 Path: news.gmane.org!not-for-mail From: Gerrit Pape Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Migrating from daemontools Date: Fri, 12 May 2006 15:23:40 +0000 Message-ID: <20060512152340.13033.qmail@d3387fbf9fcfb4.315fe32.mid.smarden.org> References: <44627A0A.6030404@robinbowes.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1147447434 9850 80.91.229.2 (12 May 2006 15:23:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 12 May 2006 15:23:54 +0000 (UTC) Original-X-From: supervision-return-1349-gcsg-supervision=m.gmane.org@list.skarnet.org Fri May 12 17:23:50 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1FeZUB-0007Rd-DD for gcsg-supervision@gmane.org; Fri, 12 May 2006 17:23:23 +0200 Original-Received: (qmail 21005 invoked by uid 76); 12 May 2006 15:23:43 -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 21000 invoked from network); 12 May 2006 15:23:43 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <44627A0A.6030404@robinbowes.com> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1113 Archived-At: On Thu, May 11, 2006 at 12:40:58AM +0100, Robin Bowes wrote: > I'm about to migrate to runit from daemontools (for licensing reasons). > > Can I just confirm that it is as simple as : > > 1. Install runit > 2. Create /var/service > 3. Add to start up (inittab on linux or /etc/rc.local on FreeBSD) > 4. Re-read inittab (Linux) or reboot (FreeBSD) Yes, I would replace the invocation of svscanboot with runsvdir-start though, and have only runsvdir run. Then move the services from /service/ into /var/service/. > Am I right in thinking that my current scripts should run OK using runsv > instead of supervise? Yes, no changes are required as long as you have the daemontools programs still around. > Are there runit equivalents of all daemontools binaries, specifically > tai64nlocal (I am assuming that sv == svc, svlogd == multilog) ? Not all, fghack is missing. And tai64n/local doesn't have an equivalent in runit as svlogd can be told to write human-readable, sortable timestamps to the logs with the -tt switch. So this post-processing isn't necessary. svscan, svscanboot, readproctitle -> runsvdir svc, svstat, svok -> sv supervise -> runsv envdir, enduidgid, pgrphack, setlock, setuidgid, softlimit -> chpst multilog -> svlogd Regards, Gerrit.