'systemctl enable apache2' wrongly reports a failure because of update-rc.d backwards compat actions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
# lsb_release -rd
Description: Ubuntu 15.04
Release: 15.04
# apt-cache policy apache2
Installed: 2.4.10-9ubuntu1
Candidate: 2.4.10-9ubuntu1
Version table:
*** 2.4.10-9ubuntu1 0
500 http://
100 /var/lib/
# Problem description:
When using `systemctl enable apache2` to start apache2 by default on bootup, the command returns the returncode 1.
The systemd service for apache2 itself is generated by 'systemd-
The output of `systemctl enable apache2` is:
```
Synchronizing state for apache2.service with sysvinit using update-rc.d...
Executing /usr/sbin/
Executing /usr/sbin/
Failed to execute operation: No such file or directory
```
The content of the generated transient service unit is:
```INI
# /run/systemd/
# Automatically generated by systemd-
[Unit]
Documentation=
SourcePath=
Description=LSB: Apache2 web server
Before=
After=local-
Wants=network-
Conflicts=
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=
ExecStop=
ExecReload=
```
Looks to me like this is more likely a problem in systemd- sysv-generator than apache2 itself.