Bug 713334

Summary: systemd: unable to start apache2.service
Product: [openSUSE] openSUSE 12.1 Reporter: Bruno Friedmann <bruno>
Component: BasesystemAssignee: Frederic Crozat <fcrozat>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Factory   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Bruno Friedmann 2011-08-21 11:37:42 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:6.0) Gecko/20100101 Firefox/6.0 FirePHP/0.4

On a factory system, booting with systemd 
apache2.service always fail

systemctl status apache2.service
apache2.service - LSB: Apache 2.2 HTTP Server
          Loaded: loaded (/etc/init.d/apache2)
          Active: failed since Sun, 21 Aug 2011 12:51:11 +0200; 42min ago
         Process: 3338 ExecStart=/etc/init.d/apache2 start (code=killed, signal=TERM)
          CGroup: name=systemd:/system/apache2.service



Reproducible: Always

Steps to Reproduce:
1. choose systemd at boot on a ready installed factory with apache2 working with sysV
2. start the system
3. apache2.service hang
Actual Results:  
whatever you try apache2 never start with systemd 
rcapache2 stop start like systemctl stop start apache2.service always fail.

Doing this 
cd /etc/init.d/
./apache2 start work 
?

Expected Results:  
apache2 up and running

Unfortunately I don't know how to debug this one.
Even with systemd debug information I didn't get anything related to.
Comment 1 Bruno Friedmann 2011-08-21 11:47:50 UTC
oh I should precise that if I execute
/etc/init.d/apache2 start or stop nothing happen
Comment 2 Frederic Crozat 2011-08-22 09:30:58 UTC
Could you test apache2 package from home:fcrozat:systemd repository ?
Comment 3 Bruno Friedmann 2011-08-22 10:31:46 UTC
sure but for the moment there's nothing is 
http://download.opensuse.org/repositories/home:/fcrozat:/systemd/openSUSE_Factory

As I've deps (php5,fcgid etc ) I would prefer to setup the repo, and upgrade from it, compare to download each binary with an osc getbinaries .
Comment 4 Frederic Crozat 2011-08-22 10:58:46 UTC
Sorry, I forgot to enable publishing in the repo. Should be fixed now.
Comment 5 Bruno Friedmann 2011-08-22 12:46:13 UTC
Ah ah good news, it start, even after a cold reboot once I've enabled the service.

It seems supporting modifications inside /etc/sysconfig/apache2 

Just an error with SSL if key are not uncrypted 

/usr/sbin/start_apache2 -D SYSTEMD -k start
Syntax error on line 33 of /etc/apache2/ssl-global.conf:
SSLPassPhraseDialog: file '/usr/sbin/apache2-systemd-ask-pass.sh' does not exist

otherwise, cool :D
Comment 6 Frederic Crozat 2011-08-22 13:32:13 UTC
typo fixed in ssl-global.conf.
Comment 7 Frederic Crozat 2011-08-24 16:48:26 UTC
closing as fixed