[Bug 737524] New: apache2 doesn't start automatically using systemd
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c0 Summary: apache2 doesn't start automatically using systemd Classification: openSUSE Product: openSUSE 12.2 Version: Factory Platform: x86-64 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Apache AssignedTo: bnc-team-apache@forge.provo.novell.com ReportedBy: sboyce@blueyonder.co.uk QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0 lancelot@sepulot:~> ps fax|grep httpd 6592 pts/3 S+ 0:00 | \_ grep --color=auto httpd lancelot@sepulot:~> Using sysvinit it is OK. sepulot:/home/lancelot # service apache2 start redirecting to systemctl sepulot:/home/lancelot # ps fax|grep httpd 6675 pts/3 S+ 0:00 | \_ grep --color=auto httpd 6667 ? Ss 0:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start 6668 ? S 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start 6670 ? S 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start 6671 ? S 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start 6672 ? S 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start 6673 ? S 0:00 \_ /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -D SYSTEMD -k start sepulot:/home/lancelot # /etc/init.d/vboxdrv setup Stopping VirtualBox kernel modules done Uninstalling old VirtualBox DKMS kernel modules done Trying to register the VirtualBox kernel modules using DKMS failed (Failed, trying without DKMS) Recompiling VirtualBox kernel modules done Starting VirtualBox kernel modules done sepulot:/home/lancelot # lsmod|grep vbox vboxpci 23288 0 vboxnetadp 13382 0 vboxnetflt 23882 0 vboxdrv 279868 3 vboxpci,vboxnetadp,vboxnetflt sepulot:/home/lancelot # service vboxdrv stop redirecting to systemctl sepulot:/home/lancelot # lsmod|grep vbox sepulot:/home/lancelot # service vboxdrv start redirecting to systemctl sepulot:/home/lancelot # lsmod|grep vbox vboxpci 23288 0 vboxnetadp 13382 0 vboxnetflt 23882 0 vboxdrv 279868 3 vboxpci,vboxnetadp,vboxnetflt Reproducible: Always Steps to Reproduce: 1.Reboot 2. 3. Actual Results: See Summary above. Expected Results: apache2 should start automatically on reboot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c Sid Boyce <sboyce@blueyonder.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sboyce@blueyonder.co.uk QAContact|qa@suse.de |crrodriguez@opensuse.org -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c1 --- Comment #1 from Sid Boyce <sboyce@blueyonder.co.uk> 2011-12-18 13:09:28 UTC --- I enabled apache2.service in /lib/systemd/system.preset/default-openSUSE.preset I'll see if it's fixed on the next reboot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c2 --- Comment #2 from Sid Boyce <sboyce@blueyonder.co.uk> 2011-12-18 13:29:29 UTC --- That didn't work and I had to issue "service apache2 start". -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c3 --- Comment #3 from Sid Boyce <sboyce@blueyonder.co.uk> 2011-12-18 14:00:22 UTC --- sepulot:/etc/systemd/system/multi-user.target.wants # ln -s /lib/systemd/system/apache2.service . Now apache2 starts after a reboot. The secret seems to be to symlink services in /lib/systemd/system/ to /etc/systemd/<appropriate_directory> In this case the multi-user.target.wants directory pointed to in the service file [Install] WantedBy=multi-user.target sepulot:/etc/systemd/system/multi-user.target.wants # l total 8 drwxr-xr-x 2 root root 4096 Oct 19 05:09 ./ drwxr-xr-x 10 root root 4096 Dec 18 13:17 ../ lrwxrwxrwx 1 root root 40 Oct 19 05:05 avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service lrwxrwxrwx 1 root root 32 Oct 19 05:05 cron.service -> /lib/systemd/system/cron.service lrwxrwxrwx 1 root root 42 Oct 19 05:09 NetworkManager.service -> /lib/systemd/system/NetworkManager.service lrwxrwxrwx 1 root root 36 Oct 19 05:04 remote-fs.target -> /lib/systemd/system/remote-fs.target lrwxrwxrwx 1 root root 34 Sep 10 00:10 syslog.service -> /lib/systemd/system/syslog.service sepulot:/etc/systemd/system/multi-user.target.wants # ln -s /lib/systemd/system/apache2.service . sepulot:/etc/systemd/system/multi-user.target.wants # l total 8 drwxr-xr-x 2 root root 4096 Dec 18 13:47 ./ drwxr-xr-x 10 root root 4096 Dec 18 13:17 ../ lrwxrwxrwx 1 root root 35 Dec 18 13:47 apache2.service -> /lib/systemd/system/apache2.service lrwxrwxrwx 1 root root 40 Oct 19 05:05 avahi-daemon.service -> /lib/systemd/system/avahi-daemon.service lrwxrwxrwx 1 root root 32 Oct 19 05:05 cron.service -> /lib/systemd/system/cron.service lrwxrwxrwx 1 root root 42 Oct 19 05:09 NetworkManager.service -> /lib/systemd/system/NetworkManager.service lrwxrwxrwx 1 root root 36 Oct 19 05:04 remote-fs.target -> /lib/systemd/system/remote-fs.target lrwxrwxrwx 1 root root 34 Sep 10 00:10 syslog.service -> /lib/systemd/system/syslog.service -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c4 Cristian Rodríguez <crrodriguez@opensuse.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED Resolution| |WORKSFORME --- Comment #4 from Cristian Rodríguez <crrodriguez@opensuse.org> 2012-01-02 14:49:55 CLST --- Not a bug, to enable services, when using systemd you must issue systemctl enable apache2.service which creates all the needed symlinks for you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=737524 https://bugzilla.novell.com/show_bug.cgi?id=737524#c5 Jean-Daniel Dodin <jdd@dodin.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jdd@dodin.org --- Comment #5 from Jean-Daniel Dodin <jdd@dodin.org> 2012-01-02 19:33:16 UTC --- there is still a bug. I activated apache2 in YaST (running levels) and it didn't activate. Your command did (thanks, I didn't know how to do it :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com