systemctl enable shows error on enabling a SysV service
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Medium
|
Martin Pitt | ||
Vivid |
Fix Released
|
Medium
|
Unassigned | ||
Wily |
Fix Released
|
Medium
|
Martin Pitt |
Bug Description
SRU TEST CASE:
--------------
Trying to enable a SysV init service which does not have a corresponding systemd unit results in an error:
# systemctl enable pulseaudio
Synchronizing state for pulseaudio.service with sysvinit using update-rc.d...
Executing /usr/sbin/
Executing /usr/sbin/
Failed to execute operation: No such file or directory
/etc/init.
SRU Regression potential
-------
Low, the modes for "sysv script + systemd unit" as well as "systemd unit only" already have automatic tests, and now this scenario ("sysv script only") has a test too. In the worst case this has the potential of completely breaking systemctl enable/disable, which can be worked around with changing symlinks manually, and isn't breaking the boot.
Version details:
Description: Ubuntu 15.04
Release: 15.04
systemd:
Installed: 219-7ubuntu3
Candidate: 219-7ubuntu3
Version table:
*** 219-7ubuntu3 0
500 http://
100 /var/lib/
Changed in systemd (Ubuntu): | |
importance: | Undecided → High |
Changed in systemd (Ubuntu): | |
importance: | High → Wishlist |
status: | Confirmed → Triaged |
importance: | Wishlist → Low |
importance: | Low → Wishlist |
Changed in systemd (Ubuntu): | |
importance: | Wishlist → Low |
assignee: | nobody → Martin Pitt (pitti) |
summary: |
- systemctl enable fails to enable a SysV service + systemctl enable shows error on enabling a SysV service |
Changed in systemd (Ubuntu Wily): | |
status: | Triaged → Fix Committed |
tags: |
added: verification-done removed: verification-needed |
Looking closer, the service is getting enabled - the update-rc.d commands are succeeding and the init.d links are getting created - but systemctl is still returning an error.