User: Password:
Subscribe / Log in / New account

Poettering: The Biggest Myths

Poettering: The Biggest Myths

Posted Jan 28, 2013 2:19 UTC (Mon) by mezcalero (subscriber, #45103)
In reply to: Poettering: The Biggest Myths by hazard
Parent article: Poettering: The Biggest Myths

You know, regarding your example with spawning something on a serial tty: if I assume right you'd have edited /etc/inittab and add a new specialized line there, for your purpose, right?

As it turns out this already didn't work anymore long before systemd came along. And that's because Fedora and RHEL 6 used Upstart for a while, and Upstart already dropped support for inittab entirely.

In systemd, we could actually relatively nicely have provided compatibility with most features of inittab with a "generator" tool, which can extend systemd's dependency tree nicely from external configuration in other formats, such as inittab. However, given that Upstart already dropped support for inittab we decided there was no point in reintroducing it again.

So anyway, for this specific issue you cannot actually blame us systemd folks, blame Upstart instead please. (Not saying you can't blame us for a lot of other changes, but hey, for this specific one we do not take any credit.)


(Log in to post comments)

Poettering: The Biggest Myths

Posted Jan 28, 2013 2:33 UTC (Mon) by dlang (subscriber, #313) [Link]

doing a quick bit of googleing here, it looks like RHEL is shipping support for inittab in it's upstart driven versions.

This makes a lot of sense to me, the lack of inittab support in upstart is a mistake. It's too bad that systemd is copying this mistake. It will just require people to work around it.

Poettering: The Biggest Myths

Posted Jan 29, 2013 10:01 UTC (Tue) by michich (subscriber, #17902) [Link]

No, one cannot use inittab in RHEL 6 to spawn any custom services. The RHEL 6 Migration Planning Guide says:
The /etc/inittab file is deprecated, and is now used only for setting up the default runlevel via the initdefault line. Other configuration is done via upstart jobs in the /etc/init directory.
... and then goes on to describe how to setup a custom getty instance using an upstart job.

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds