From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1455 Path: news.gmane.org!not-for-mail From: "Daniel Clark" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit on AIX Date: Tue, 26 Jun 2007 10:45:10 -0400 Message-ID: <5422d5e60706260745l6276f34eoedf71d6044df55a0@mail.gmail.com> References: <5422d5e60706250527i300f4c71ue9f9526b1b45f508@mail.gmail.com> <20070626100213.6401.qmail@1df015f10c84ca.315fe32.mid.smarden.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182869126 25991 80.91.229.12 (26 Jun 2007 14:45:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Jun 2007 14:45:26 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1692-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Jun 26 16:45:20 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1I3CI7-0007l8-U0 for gcsg-supervision@gmane.org; Tue, 26 Jun 2007 16:45:16 +0200 Original-Received: (qmail 26288 invoked by uid 76); 26 Jun 2007 14:45:34 -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 26283 invoked from network); 26 Jun 2007 14:45:34 -0000 DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=QC2cHa7Ntp+O9SrEVDd/LKcaEI07mg2YWH6ZEVl/jUpN13ur3K8HkZoQDficaABRaKgEYVLWgQSE8dXP/LDNH4zUA8pJ82+KlZnbY8wnCoqda2r6KNMdlwGMOsqUX6tOvRmdka+5+i2SR6tFpOh0Aa2l+lvw/Q8MSHUHRx17VSw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=usD+60eUxb3xtuiQA3VigPaKQXnqqiaWjlelzKRsPmqsyVF7uAbDXzZ5kaDS8LZ8tvmNJmDixS/R+IJnWxyWhovSlIvnqwVpu6pvDzalwU+wyeHK4h1bpdE9ecVg5e/wa0lZbFEmnyd4VFftmqhyc1L69NGQwskctaxCy7V8vxY= Original-Sender: djbclark@gmail.com In-Reply-To: <20070626100213.6401.qmail@1df015f10c84ca.315fe32.mid.smarden.org> Content-Disposition: inline X-Google-Sender-Auth: e47b07e89ce8c2cb Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1455 Archived-At: I'm not a C programmer, so immediately thought of the shell-based solution, but I agree your patch makes much more sense. I have some Q2 deadlines at work, but will test this probably over the weekend, and report back to the list so it can get included in runit 1.7.3. BTW I am not using runit to replace init, just as a service monitor, so the "it's working on AIX" only applies to that use case; I haven't (and am not planning on) trying to replace AIX init with runit. On 6/26/07, Gerrit Pape wrote: > On Mon, Jun 25, 2007 at 08:27:39AM -0400, Daniel Clark wrote: > > Yay! - runit seems to be working fine on AIX 5.2 ML1 and AIX 5.3 ML5. > > The only required change was to rename some defines in > > "compile/uw_tmp.h1": > > > > -#define UW_TMP_UFILE _PATH_UTMP > > -#define UW_TMP_WFILE _PATH_WTMP > > +#define UW_TMP_UFILE UTMP_FILE > > +#define UW_TMP_WFILE WTMP_FILE > > Hi Daniel, simply falling back to UTMP_FILE if _PATH_UTMP isn't defined > should do it, see the patch below. > > Thanks, Gerrit. > > -- Daniel Clark # http://planyp.us/djbclark/profile # http://dclark.us # http://opensysadmin.com