From: Lars Kellogg-Stedman <lars@oddbit.com>
Subject: Can't run mingetty with runsvdir?
Date: Sun, 20 Feb 2005 18:21:17 +0000 (UTC) [thread overview]
Message-ID: <slrnd1hlf3.4bp.lars@flowers.house.oddbit.com> (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>
next reply other threads:[~2005-02-20 18:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-20 18:21 Lars Kellogg-Stedman [this message]
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
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=slrnd1hlf3.4bp.lars@flowers.house.oddbit.com \
--to=lars@oddbit.com \
/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).