Scripts need to be migrated from /etc/event.d to /etc/init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Release Notes for Ubuntu |
Fix Released
|
Medium
|
Unassigned | ||
upstart (Ubuntu) |
Won't Fix
|
Medium
|
Scott James Remnant (Canonical) | ||
Karmic |
Won't Fix
|
Medium
|
Scott James Remnant (Canonical) |
Bug Description
Binary package hint: upstart
I've got a system that was initially installed with Ubuntu Hardy.
During May or June it was upgraded to Ubuntu Karmic.
It's running with the console on ttyS0 which is a serial interface.
The kernel is booted with 'console=
During an upgrade (apt-get dist-upgrade) somewhere in early July the getty is no longer started on /dev/ttyS0.
This is what things used to look like in /etc/event.d/
root@ubuntu:
tty1:exec /sbin/getty -8 38400 tty1
tty2:exec /sbin/getty -8 38400 tty2
tty3:exec /sbin/getty -8 38400 tty3
tty4:exec /sbin/getty -8 38400 tty4
tty5:exec /sbin/getty -8 38400 tty5
tty6:exec /sbin/getty -8 38400 tty6
ttyS0:exec /sbin/getty -L ttyS0 57600 vt102
Now, after the upgrade in early July it seems as if the file in /etc/event.d are no longer used.
The getty for ttyS0 is no longer started.
Instead the files responsible for launching gettys are located in /etc/init.
After "porting" the old /etc/event.d/ttyS0 file to the new format used by the upstart package and placing it in /etc/init as ttyS0.conf I got getty back on /dev/ttyS0.
I'm not entirely sure what happened but it seems as if my installation, after the dist-upgrade in early July, stopped using stuff from the package system-services and instead started using files from the package upstart.
Whatever happened in my case, when /etc/event.d stopped being used, should have been handled better.
Just imagine an upgrade on a co-located machine (which migt not be easily accessible) which will result in an administrators no longer being able to login on the serial console.
Here's output from dpkg that shows what package owns which files, using the launch file for tty1 as an example:
# dpkg -S /etc/event.d/tty1 /etc/init/tty1.conf
system-services: /etc/event.d/tty1
upstart: /etc/init/tty1.conf
For what it's worth:
# dpkg -l|egrep 'system-
ii console-setup 1.34ubuntu1 console font and keymap setup program
ii console-terminus 4.28-1 Fixed-width fonts for fast reading on the Li
ii consolekit 0.3.0-2ubuntu7 framework for defining and tracking users, s
ii kbd 1.15-1ubuntu1 Linux console font and keytable utilities
rc system-services 0.3.10-2 definitions of essential system services
ii upstart 0.6.1-1 event-based init daemon
rc upstart-compat-sysv 0.3.10-2 compatibility for System-V-like init
rc upstart-logd 0.3.10-2 boot logging daemon
# lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10
description: | updated |
Changed in upstart (Ubuntu): | |
assignee: | nobody → Scott James Remnant (scott) |
milestone: | none → karmic-alpha-4 |
Changed in upstart (Ubuntu): | |
milestone: | karmic-alpha-4 → ubuntu-9.10 |
Changed in ubuntu-release-notes: | |
assignee: | Scott James Remnant (scott) → nobody |
If something regarding /etc/event.d has changed in Ubuntu Karmic I suppose the instructions for running Ubuntu with a serial console should be updated on https:/ /help.ubuntu. com/community/ SerialConsoleHo wto to reflect the new behavior.