Convert SysV init.d jobs to upstart in main.

Registered by James Hunt

Convert existing 122 SystemV init.d services in main to Upstart job configuration files.

This task could be simplified by the introduction of abstract jobs and event aliases.

session notes: http://summit.ubuntu.com/uds-o/meeting/foundations-o-upstart-convert-main-initd-to-jobs/

Blueprint information

Status:
Not started
Approver:
Steve Langasek
Priority:
Medium
Drafter:
James Hunt
Direction:
Approved
Assignee:
James Hunt
Definition:
Approved
Series goal:
Accepted for oneiric
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

[vorlon] abstract job needed for display manager startup
[jhunt] could also add abstract jobs / events / event aliases for:
- network-manager (NetworkManager, wicd, connman)
...and events for:
- "boot", "reboot", "shutdown", "multi-user", "graphical-login"? (aliases for runlevel)
- "text-login-possible" and "graphical-login-possible" denoting getty and display-manager running respectively.
- "graphics-card-added" (see gdm.conf for why this would be useful)
- "network" (currently, you have to say "start on stopped networking").
- "firewall"
See LSB for more ideas:
http://refspecs.freestandards.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/facilname.html
[jhunt] The systemd guys have already audited the SysV jobs in Fedora when porting them to systemd. We could potentially make use of this work.

Work items:
[jamesodhunt] Introduce "helpers" (abstract jobs, new events and aliases): POSTPONED
[jamesodhunt] Update upstart-events(7) for helpers: POSTPONED
[jamesodhunt] Update Upstart Cookbook for helpers: POSTPONED
[jamesodhunt] Advertise "helpers" to Community: POSTPONED
[jamesodhunt] Group SysV services in main by perceived importance (requires input from others): POSTPONED
[jamesodhunt] Request help from Community and Server Team to migrate packages: POSTPONED
[jamesodhunt] Investigate systemd efforts to migrate away from SysV (to systemd's ".desktop" format): POSTPONED
[jamesodhunt] Work on converting a subset of SysV services: POSTPONED
[jamesodhunt] Work with QA to minimise problems: POSTPONED

Thoughts:

- Need to ensure QA are aware of changes as the occur, to minimise problems.
- Care must be taken to ensure that all "helpers" are of the appropriate type (see Tables 1 and 2 in upstart-events(7).
- Some of these packages are currently sync'ed from Debian unmodified. We should work to get these changes in Debian so we don't need to maintain the diff.
 - this requires first finishing the Debian policy on upstart jobs

Related Blueprints:

https://blueprints.launchpad.net/ubuntu/+spec/foundations-o-upstart-for-admins
https://blueprints.launchpad.net/ubuntu/+spec/server-o-complex-deployment-testing
https://blueprints.launchpad.net/ubuntu/+spec/server-o-automated-boot-testing
https://blueprints.launchpad.net/ubuntu/+spec/server-o-boot-experience
Related

(?)

Work Items