Show warning on upgrade if there are /etc/init/*.override files

Bug #1542025 reported by Michael
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Triaged
Medium
Unassigned

Bug Description

While upgrading from 14.04 to 16.04, I noticed that all of my previously disabled services got started again.

I disabled them by putting "manual" in e.g. /etc/init/isc-dhcp-server.conf - which is the "right" way I think. Luckily, there was no harm in my case, but this can put many people in risk by e.g. letting starting server services which are then accessible outside or even disrupt networks (like dhcp-servers). So in my oppinion the transition to systemd should honor "manual" flags in .override files - or at least warn if there are .override files.

Tags: xenial
Revision history for this message
Martin Pitt (pitti) wrote :

Sorry, we are not going to implement an upstart parser into systemd, and there is not even an 1-to-1 correspondence between upstart jobs and systemd units. So this can only ever be a heuristics, and "working in some cases" is worse (because not predictable) than "upstart overrides don't affect systemd units".

The "right way" to disable something in an init system agnostic way is "update-rc.d myservice disable". This will disable sysv init scripts, upstart jobs, and systemd units. But it's not realistic to expect that upstart and systemd can read each other's configuration files, sorry..

Changed in systemd (Ubuntu):
status: New → Won't Fix
Revision history for this message
Michael (3-ueuntu-4) wrote :

Sorry, I think you missunterstood me ;-)

I meant NO reading upstart scripts from systemd, I meant a "big fat warning" during the system upgrade(!) if there are .override files - and perhaps a knob which disables services which were disabled in upstart. But the most important is the "big fat warning".

Revision history for this message
Martin Pitt (pitti) wrote :

OK. Packages don't have a good way of presenting such a warning, so this would need to go into the release upgrader.

summary: - Transition from upstart to systemd should honor /etc/init/*.override
+ Show warning on upgrade if there are /etc/init/*.override files
affects: systemd (Ubuntu) → ubuntu-release-upgrader (Ubuntu)
Changed in ubuntu-release-upgrader (Ubuntu):
status: Won't Fix → Triaged
tags: added: rls-x-incoming
Michael (3-ueuntu-4)
tags: added: xenial
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → Medium
importance: Medium → High
Revision history for this message
Michael (3-ueuntu-4) wrote :

Any news on that one?

Changed in ubuntu-release-upgrader (Ubuntu):
importance: High → Medium
tags: removed: rls-x-incoming
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.