supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Can't run mingetty with runsvdir?
@ 2005-02-20 18:21 Lars Kellogg-Stedman
  2005-02-20 20:56 ` Vincent Danen
  0 siblings, 1 reply; 5+ messages in thread
From: Lars Kellogg-Stedman @ 2005-02-20 18:21 UTC (permalink / raw)


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 <lars@oddbit.com>




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-02-21 17:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-20 18:21 Can't run mingetty with runsvdir? Lars Kellogg-Stedman
2005-02-20 20:56 ` Vincent Danen
2005-02-21  1:13   ` Lars Kellogg-Stedman
2005-02-21 17:13     ` Charlie Brady
2005-02-21 17:29       ` Lars Kellogg-Stedman

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).