On 31/10/2020 21.15, Dave Howorth wrote:
On Sat, 31 Oct 2020 19:44:18 +0100 "Carlos E. R." <> wrote:
On 31/10/2020 14.07, Patrick Shanahan wrote:
* Carlos E. R. <> [10-31-20 06:40]:
On 31/10/2020 07.44, Andrei Borzenkov wrote:
31.10.2020 00:45, Carlos E. R. пишет:
...
What ordering does it use?
Cacti is the first one listed by "ls":
Telcontar:~ # l /etc/apache2/conf.d/*.conf -rw-r--r-- 1 root root 2105 Aug 4 17:23 /etc/apache2/conf.d/cacti.conf -rw-r--r-- 1 root root 361 May 19 14:06 /etc/apache2/conf.d/gitweb.conf -rw-r--r-- 1 root root 1940 Apr 11 2017 /etc/apache2/conf.d/local.conf -rw-r--r-- 1 root root 793 Aug 26 18:06 /etc/apache2/conf.d/manual.conf -rw-r--r-- 1 root root 354 Sep 2 16:20 /etc/apache2/conf.d/php7.conf Telcontar:~ #
but you are calling the command with a sort enabled via an alias
what displays when you use: ls -fla /etc/apache2/conf.d/*.conf
"context" is everything.
Ok...
cer@Telcontar:~> ls -fla /etc/apache2/conf.d/*.conf -rw-r--r-- 1 root root 2105 Aug 4 17:23 /etc/apache2/conf.d/cacti.conf -rw-r--r-- 1 root root 361 May 19 14:06 /etc/apache2/conf.d/gitweb.conf -rw-r--r-- 1 root root 1940 Apr 11 2017 /etc/apache2/conf.d/local.conf -rw-r--r-- 1 root root 793 Aug 26 18:06 /etc/apache2/conf.d/manual.conf -rw-r--r-- 1 root root 354 Sep 2 16:20 /etc/apache2/conf.d/php7.conf cer@Telcontar:~>
Same order.
Something's weird there. Apart from the unsorted (i.e. directory order) happening to match the alphabetic order! But why would a file said to be installed in 2014 and presumably unaltered since (as otherwise that would be a relevant fact that should have been mentioned) have a date of Aug 4 this year?
You misunderstand. I installed cacti that year or earlier using the current package at that year, and of course it has been automatically updated over the years to the current official versions. So the file is now of course the official Leap 15.1 cacti version. The point is that I installed cacti so long ago that I don't remember why. If I wanted it, or something else wanted it. The machine has been upgraded over the years, so that it now has the official versions of packages for Leap 15.1, and soon it will have Leap 15.2. And suddenly this August apache failed to start, without me changing anything - except some update to some package by zypper or yast; and I did not care to find out why till the other day that I needed apache to start. And it does if I rename /etc/apache2/conf.d/cacti.conf to /etc/apache2/conf.d/cacti.confno. What is wrong in that file or other, I have no idea whatsoever.
Whilst other files have varying dates as far back as 2017,
Also official files and current - except of course the local.conf file
which (a) makes it unlikely this is a recent copy of a backup and (b) confuses me as to how the directory order actually works.
Telcontar:~ # ls -fla /etc/apache2/conf.d/*.conf -rw-r--r-- 1 root root 2105 Aug 4 17:23 /etc/apache2/conf.d/cacti.conf -rw-r--r-- 1 root root 361 May 19 14:06 /etc/apache2/conf.d/gitweb.conf -rw-r--r-- 1 root root 1940 Apr 11 2017 /etc/apache2/conf.d/local.conf -rw-r--r-- 1 root root 793 Aug 26 18:06 /etc/apache2/conf.d/manual.conf -rw-r--r-- 1 root root 354 Sep 2 16:20 /etc/apache2/conf.d/php7.conf Telcontar:~ # rpm -qf /etc/apache2/conf.d/cacti.conf cacti-1.2.14-lp151.3.15.1.noarch Telcontar:~ # rpm -qf /etc/apache2/conf.d/gitweb.conf git-web-2.26.2-lp151.4.12.1.x86_64 Telcontar:~ # rpm -qf /etc/apache2/conf.d/local.conf file /etc/apache2/conf.d/local.conf is not owned by any package Telcontar:~ # rpm -qf /etc/apache2/conf.d/manual.conf apache2-doc-2.4.33-lp151.8.15.1.noarch Telcontar:~ # rpm -qf /etc/apache2/conf.d/php7.conf apache2-mod_php7-7.2.5-lp151.6.32.1.x86_64 Telcontar:~ # rpm -qfV /etc/apache2/conf.d/cacti.conf Telcontar:~ # rpm -qfV /etc/apache2/conf.d/gitweb.conf Telcontar:~ # rpm -qfV /etc/apache2/conf.d/manual.conf Telcontar:~ # rpm -qfV /etc/apache2/conf.d/php7.conf Telcontar:~ # -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)