From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/719 Path: main.gmane.org!not-for-mail From: Lars Kellogg-Stedman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Can't run mingetty with runsvdir? Date: Sun, 20 Feb 2005 18:21:17 +0000 (UTC) Message-ID: Reply-To: lars@oddbit.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108923701 30194 80.91.229.2 (20 Feb 2005 18:21:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 20 Feb 2005 18:21:41 +0000 (UTC) Original-X-From: supervision-return-958-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Feb 20 19:21:41 2005 Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1D2vi3-0001ir-HM for gcsg-supervision@gmane.org; Sun, 20 Feb 2005 19:21:35 +0100 Original-Received: (qmail 32350 invoked by uid 76); 20 Feb 2005 18:25:13 -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 32344 invoked from network); 20 Feb 2005 18:25:13 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 38 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209-6-203-41.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com User-Agent: slrn/0.9.8.1 (Linux) Original-Sender: news X-MailScanner-To: gcsg-supervision@gmane.org Xref: main.gmane.org gmane.comp.sysutils.supervision.general:719 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:719 I'm trying to replace the mingetty calls in /etc/inittab with runit-controlled services. The inittab entries look like this: 1:2345:respawn:/sbin/mingetty tty1 I've create a run script for runsv that looks like this: #!/bin/sh exec mingetty tty1 Unfortunately, this fails with the following error logged in syslog: auth.err: Feb 20 12:44:42 mingetty[5609]: tty1: no controlling tty: Operation not permitted Using strace shows that the "Operating not permitted" error is due to a failed ioctl() call. ioctl(3, TIOCSCTTY) = -1 EPERM (Operation not permitted) According to what little documentation I can find out there, TIOCSCTTY returns EPERM "If this tty is already the controlling tty of a different session group." But nothing else has tty1 open. I'm running this service via runsvdir, which itself is started from /etc/inittab via the following: ri:2345:respawn:/sbin/runsvdir /etc/runit/active-services This is all happening in a Linux 2.6 environment. Anyone have this working? I replaced mingetty with agetty for the time being, which appears to work, but I'm curious what's making mingetty choke. -- Lars -- Lars Kellogg-Stedman