|
Bugzilla – Full Text Bug Listing |
| Summary: | apache2: systemd needs async ask-password integration instead of X-Interactive | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE 12.1 | Reporter: | Jiri Slaby <jslaby> |
| Component: | Basesystem | Assignee: | Roman Drahtmueller <draht> |
| Status: | RESOLVED FIXED | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | fcrozat, kairo |
| Version: | Factory | ||
| Target Milestone: | --- | ||
| Hardware: | x86-64 | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
| Bug Depends on: | |||
| Bug Blocks: | 696902 | ||
| Attachments: | strace -fo strace systemctl start apache2.service | ||
|
Description
Jiri Slaby
2011-05-31 09:58:43 UTC
# rpm -q systemd apache2 systemd-28-110.1.x86_64 apache2-2.2.17-7.1.x86_64 Any idea what times out? You need passwords to entered to start it up? What does: systemctl status apache2.service say? (In reply to comment #2) > Any idea what times out? Nope. > You need passwords to entered to start it up? No, I have not configured anything like that. > What does: > systemctl status apache2.service > say? apache2.service - LSB: Apache 2.2 HTTP Server Loaded: loaded (/etc/init.d/apache2) Active: failed since Tue, 31 May 2011 10:05:31 +0000; 1h 23min ago Process: 2115 ExecStart=/etc/init.d/apache2 start (code=killed, signal=TERM) CGroup: name=systemd:/system/apache2.service Created attachment 432249 [details]
strace -fo strace systemctl start apache2.service
Strace of the process. There are some ask-pass strings. Dunno if it means anything.
(In reply to comment #4) > Strace of the process. There are some ask-pass strings. Dunno if it means > anything. Systemctl always starts the password agent if started from a console, regardless if the service will need it. The problem is X-Interactive in the init script. Apache will need to ask systemd asynchronously for passwords, instead of waiting on the console. The X-Interactive needs to be removed. Here is the Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=707917#c3 (In reply to comment #5) > The problem is X-Interactive in the init script. Apache will need to ask > systemd asynchronously for passwords, instead of waiting on the console. > > The X-Interactive needs to be removed. If I remove it, the problem still persists. Is there any workaround? (I have the very same problem with openvpn. However this one I reported earlier.) > Here is the Fedora bug: > https://bugzilla.redhat.com/show_bug.cgi?id=707917#c3 (In reply to comment #6) > (In reply to comment #5) > > The problem is X-Interactive in the init script. Apache will need to ask > > systemd asynchronously for passwords, instead of waiting on the console. > > > > The X-Interactive needs to be removed. > > If I remove it, the problem still persists. Is there any workaround? You did a: systemctl --system daemon-reload after editing the init script? > (I have > the very same problem with openvpn. However this one I reported earlier.) Yes, it's the same problem, but not such a simple shell script fix. Openvpn does not have the nice exec directive apache has, it needs a plugin for openvpn that does the async password. (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #5) > > > The problem is X-Interactive in the init script. Apache will need to ask > > > systemd asynchronously for passwords, instead of waiting on the console. > > > > > > The X-Interactive needs to be removed. > > > > If I remove it, the problem still persists. Is there any workaround? > > You did a: > systemctl --system daemon-reload > after editing the init script? Oh my, that's the trick. > > (I have > > the very same problem with openvpn. However this one I reported earlier.) > > Yes, it's the same problem, but not such a simple shell script fix. My openvpn is compiled to accept passwords from files (it waits for no input). So the fix should be identical... Thanks. (In reply to comment #8) > My openvpn is compiled to accept passwords from files (it waits for no input). > So the fix should be identical... Right, it should only be needed if passwords needs to be queried at service startup. I've done a test package at home:fcrozat:systemd / apache2 which plugs into systemd ask password service, when apache2 is started from systemd. Roman, does it seem ok for you, as apache maintainer ? I've sr changes (sr 79684) for review. sr accepted in Apache project, closing. This is an autogenerated message for OBS integration: This bug (697137) was mentioned in https://build.opensuse.org/request/show/82181 |