tags 850829 -pending +unreproducible thanks > On Tue, Jan 10, 2017 at 05:28:27PM +0100, Vincent Lefevre wrote: > > However... > > > > # apt install --reinstall monit > > Oh, I see, this happens on reinstallation.
Hmm, I can't reproduce this as suggested by you. # apt install monit Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libssl1.1 Suggested packages: exim4 | postfix | mail-transport-agent sysvinit-core The following NEW packages will be installed: libssl1.1 monit 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1,646 kB of archives. After this operation, 4,502 kB of additional disk space will be used. Do you want to continue? [Y/n] Preconfiguring packages ... [...] root@sid:~# systemctl restart monit root@sid:~# cat /var/log/monit.log [MSK Jan 10 21:27:31] info : New Monit id: 03a56de07d33c77d28b720c293e8b78a Stored in '/var/lib/monit/id' [MSK Jan 10 21:27:31] info : Starting Monit 5.20.0 daemon [MSK Jan 10 21:27:31] info : 'sid' Monit 5.20.0 started [MSK Jan 10 21:28:03] info : Monit daemon with pid [971] stopped [MSK Jan 10 21:28:03] info : 'sid' Monit 5.20.0 stopped [MSK Jan 10 21:28:03] info : Starting Monit 5.20.0 daemon [MSK Jan 10 21:28:03] info : 'sid' Monit 5.20.0 started root@sid:~# apt install --reinstall monit Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded. Need to get 0 B/309 kB of archives. After this operation, 0 B of additional disk space will be used. (Reading database ... 20013 files and directories currently installed.) Preparing to unpack .../monit_1%3a5.20.0-4_amd64.deb ... Unpacking monit (1:5.20.0-4) over (1:5.20.0-4) ... Setting up monit (1:5.20.0-4) ... Processing triggers for systemd (232-8) ... root@sid:~# cat /var/log/monit.log [MSK Jan 10 21:27:31] info : New Monit id: 03a56de07d33c77d28b720c293e8b78a Stored in '/var/lib/monit/id' [MSK Jan 10 21:27:31] info : Starting Monit 5.20.0 daemon [MSK Jan 10 21:27:31] info : 'sid' Monit 5.20.0 started [MSK Jan 10 21:28:03] info : Monit daemon with pid [971] stopped [MSK Jan 10 21:28:03] info : 'sid' Monit 5.20.0 stopped [MSK Jan 10 21:28:03] info : Starting Monit 5.20.0 daemon [MSK Jan 10 21:28:03] info : 'sid' Monit 5.20.0 started [MSK Jan 10 21:30:52] info : Monit daemon with pid [1055] stopped [MSK Jan 10 21:30:52] info : 'sid' Monit 5.20.0 stopped [MSK Jan 10 21:30:58] info : Starting Monit 5.20.0 daemon [MSK Jan 10 21:30:58] info : 'sid' Monit 5.20.0 started As you can see, /var/log/monit.log was preserved. This system was configured with default systemd settings (i.e. no persistent logging). Nothing wrong happens also if I enable persistent logging, as documented in docs.