** Description changed:

- apache2ctl detects if systemd is in use by looking at the owner of 
/proc/1/exe.
- Under docker, however, this cannot be relied on and may simply be the command 
being run:
+ apache2ctl detects if systemd is in use by looking at the owner of
+ /proc/1/exe.
  
-   $ docker run --rm --name "apache2-test" 26ff08910bcd ls -l /proc/1/exe
-   lrwxrwxrwx 1 root root 0 Feb 23 22:07 /proc/1/exe -> /usr/bin/ls
+ Under docker, however, this cannot be relied on and may simply be the
+ command being run:
  
- Another way to look for systemd is  [ -d /run/systemd/system ], which
- may be worth having as a fallback to check if /proc/1 is not systemd.
+   $ docker run --rm --name "apache2-test" 26ff08910bcd ls -l /proc/1/exe
+   lrwxrwxrwx 1 root root 0 Feb 23 22:07 /proc/1/exe -> /usr/bin/ls
+ 
+ This is seen as causing OCI build failures, with an error such as:
+ 
+ ...
+ Enabling site 000-default.
+ update-rc.d: error: no runlevel symlinks to modify, aborting!
+ dpkg: error processing package apache2 (--configure):
+  installed apache2 package post-installation script subprocess returned error 
exit status 1
+ Processing triggers for libc-bin (2.33-0ubuntu2) ...
+ Errors were encountered while processing:
+  apache2
+ ...
+ 
+ [Proposed Fix]
+ Another way to look for systemd is  [ -d /run/systemd/system ], which may be 
worth having as a fallback to check if /proc/1 is not systemd.

** Changed in: apache2 (Ubuntu)
       Status: New => In Progress

** Changed in: apache2 (Ubuntu)
   Importance: Undecided => High

** Changed in: apache2 (Ubuntu)
     Assignee: (unassigned) => Bryce Harrington (bryce)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1918209

Title:
  Detection of systemd breaks building in docker

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache2/+bug/1918209/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to