[Bug 881289] New: nagios-www update tries to exectue deprecated (missing) /etc/init.d/apach2
https://bugzilla.novell.com/show_bug.cgi?id=881289 https://bugzilla.novell.com/show_bug.cgi?id=881289#c0 Summary: nagios-www update tries to exectue deprecated (missing) /etc/init.d/apach2 Classification: openSUSE Product: openSUSE 13.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: wagner-thomas@gmx.at QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 Just did a "zypper up" and got the following lines (4/6) Installing: nagios-www-4.0.7-110.1 ..................................[done] Additional rpm output: /var/tmp/rpm-tmp.wjffPA: line 32: /etc/init.d/apache2: No such file or directory /var/tmp/rpm-tmp.B06TyT: line 8: /etc/init.d/apache2: No such file or directory Seems that nagios-www tries to reload apache with a deprecated init.d script rather than a "systemctl reload apache2.service" Reproducible: Always -- 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=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c
zhang jiajun
https://bugzilla.novell.com/show_bug.cgi?id=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c1
Lars Vogdt
(4/6) Installing: nagios-www-4.0.7-110.1 ..................................[done] Additional rpm output: /var/tmp/rpm-tmp.wjffPA: line 32: /etc/init.d/apache2: No such file or directory /var/tmp/rpm-tmp.B06TyT: line 8: /etc/init.d/apache2: No such file or directory
Seems that nagios-www tries to reload apache with a deprecated init.d script rather than a "systemctl reload apache2.service"
Good catch: nagios-www indeed used the (old) %restart_on_update macro - but this macro is not adapted to "pure systemd" services. I took the freedom and ported the nagios package in OBS server:monitoring completely to systemd now. The new package should be available here: http://download.opensuse.org/repositories/server:/monitoring/openSUSE_13.1/ Can you please give it a try and report if everything works as expected? I will ask for an official online update in the case that everything works. -- 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=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c2
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c
Thomas Wagner
https://bugzilla.novell.com/show_bug.cgi?id=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c3
Lars Vogdt
From package: nagios-www-4.0.7-115.1.x86_64.rpm
------------------------- postinstall scriptlet (using /bin/sh): wwwusr=wwwrun if [ -f etc/apache2/uid.conf ]; then # If apache is installed, and we can find the apache user, set a shell var wwwusr=$(awk '/^[ \t]*User[ \t]+[a-zA-Z0-9]+/ {print $2}' etc/apache2/uid.conf) fi # if apache user is not in nagios_command_group, add it if id -Gn $wwwusr 2>/dev/null | grep -q nagcmd >/dev/null 2>&1 ; then : # $wwwusr (default: %nagios_command_user) is already in Nagios cmd group else # modify apache user, adding it to nagios_command_group usermod -a -G nagcmd $wwwusr logger -t nagios/rpm "User $wwwusr added to group nagcmd so sending commands to Nagios from the CGI is possible." fi # Update ? if [ ${1:-0} -eq 1 ]; then if [ -x /usr/sbin/a2enmod ]; then # enable authentification in apache config /usr/sbin/a2enmod authn_file >/dev/null /usr/sbin/a2enmod auth_basic >/dev/null /usr/sbin/a2enmod authz_user >/dev/null # enable php5 in apache config /usr/sbin/a2enmod php5 fi /usr/bin/systemctl try-restart apache2 fi ------------------------- There is no /etc/init.d/apache2 involved in the script. So I'm sorry but like to ask you again to test with the current release of the package in server:monitoring. My tests show no problem here on 13.1 x86_64. -- 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=881289
https://bugzilla.novell.com/show_bug.cgi?id=881289#c4
Thomas Wagner
participants (1)
-
bugzilla_noreply@novell.com