supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gerrit Pape <pape@smarden.org>
To: supervision@list.skarnet.org
Subject: Re: runit on AIX
Date: Tue, 26 Jun 2007 10:02:13 +0000	[thread overview]
Message-ID: <20070626100213.6401.qmail@1df015f10c84ca.315fe32.mid.smarden.org> (raw)
In-Reply-To: <5422d5e60706250527i300f4c71ue9f9526b1b45f508@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 480 bytes --]

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.

[-- Attachment #2: diff --]
[-- Type: text/plain, Size: 464 bytes --]

diff --git a/src/uw_tmp.h1 b/src/uw_tmp.h1
index 57231fb..2d5e994 100644
--- a/src/uw_tmp.h1
+++ b/src/uw_tmp.h1
@@ -3,7 +3,17 @@
 
 /* sysdep: -utmpx */
 
+#ifdef _PATH_UTMP
 #define UW_TMP_UFILE _PATH_UTMP
 #define UW_TMP_WFILE _PATH_WTMP
+#else
+/* AIX only has UTMP_FILE */
+#ifdef UTMP_FILE
+#define UW_TMP_UFILE UTMP_FILE
+#define UW_TMP_WFILE WTMP_FILE
+#else
+#error neither _PATH_UTMP nor UTMP_FILE defined.
+#endif
+#endif
 
 typedef struct utmp uw_tmp;

  reply	other threads:[~2007-06-26 10:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-25 12:27 Daniel Clark
2007-06-26 10:02 ` Gerrit Pape [this message]
2007-06-26 14:45   ` Daniel Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070626100213.6401.qmail@1df015f10c84ca.315fe32.mid.smarden.org \
    --to=pape@smarden.org \
    --cc=supervision@list.skarnet.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).