[Bug 725942] New: rcapache2 graceful not working with systemd
https://bugzilla.novell.com/show_bug.cgi?id=725942 https://bugzilla.novell.com/show_bug.cgi?id=725942#c0 Summary: rcapache2 graceful not working with systemd Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: cobexer@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 systemd makes custom operations of init scripts impossible to use: ------------------------------ christoph-game:~ # rcapache2 Usage: /usr/sbin/rcapache2 <command> <server flags> where <command> is one of: start - start httpd startssl - start httpd with -DSSL stop - stop httpd (sending SIGTERM to parent) try-restart - stop httpd and if this succeeds (i.e. if it was running before), start it again. status - check whether httpd is running restart - stop httpd if running; start httpd restart-graceful - stop httpd gracefully if running; start httpd reload|graceful - do a graceful restart by sending a SIGUSR1, or start if not running stop-graceful - stop httpd (sending SIGWINCH to parent) configtest - do a configuration syntax test extreme-configtest - try to run httpd as nobody (detects more errors by actually loading the configuration, but cannot read SSL certificates) probe - probe for the necessity of a reload, give out the argument which is required for a reload. (by comparing conf files with pidfile timestamp) full-server-status - dump a full status screen; requires lynx or w3m and mod_status enabled server-status - dump a short status screen; requires lynx or w3m and mod_status enabled help - this screen optional server flags are passed through to httpd. ------------------------------------------------------ most of them fail as systemd does not know them, i suppose <server flags> would not reach the apache init script either but haven't tested that. Reproducible: Always Steps to Reproduce: 1. run rcapache2 graceful 2. 3. Actual Results: Unknown operation graceful Expected Results: christoph-game:~ # /tmp/fu-systemd/apache2 graceful Reload httpd2 (graceful restart) done making a symlink in /tmp as per my above sample does provide access to functionality unknown by systemd. systemd must pass any unknown operations down to the original init script + any unknown parameters -- 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=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c1
--- Comment #1 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c2
--- Comment #2 from Christoph Obexer
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c3
--- Comment #3 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c4
--- Comment #4 from Christoph Obexer
rc* scripts are SUSE specific and are just symlink to initscripts.. yes i know
redirection of initscripts (either called by /etc/init.d/* or rc*) through systemd is needed so service are properly managed by systemd. hmm i player around a little and i see your problem now if the command restarts apache then systemd thinks its dead,...
I'm not sure to understand what you are suggesting. every command unknown to systemd should be passed to the init script in the same way "cd /etc/init.d; ./apache2 configtest" is handled; at least for 12.1. probably with a big fat warning that what the user is trying to do might cause problems and probably with a link to a wiki article or other documentation describing the problems.
the problems with virtualbox and vmware(IIRC) are two examples of why this is important. given we know these problems exist ignoring them now is bad for openSuSE as a whole HTH -- 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=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c5
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c6
Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c7
Per Jessen
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c8
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c9
--- Comment #9 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c10
--- Comment #10 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c11
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c12
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c13
Dr. Werner Fink
maintainer aaa_base bugowner of Base:System/aaa_base -- ro@suse.com
-- 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=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c14
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c15
--- Comment #15 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c16
--- Comment #16 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c17
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c18
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c19
--- Comment #19 from Karl Eichwalder
https://bugzilla.novell.com/show_bug.cgi?id=725942
https://bugzilla.novell.com/show_bug.cgi?id=725942#c20
--- Comment #20 from Frederic Crozat
participants (1)
-
bugzilla_noreply@novell.com