1 |
On April 6, 2019 2:02:27 AM UTC, Walter Dnes <waltdnes@××××××××.org> wrote: |
2 |
>On Fri, Apr 05, 2019 at 11:41:33PM +0100, Mick wrote |
3 |
>> On Friday, 5 April 2019 00:18:07 BST Walter Dnes wrote: |
4 |
>> > I updated kernel a couple of weeks ago, and had to reboot. I'm |
5 |
>not |
6 |
>> > seeing any logging output on tty12. "tail /var/log/messages" shows |
7 |
>that |
8 |
>> > it is logging properly to the file. "/etc/init.d/syslog-ng |
9 |
>restart" |
10 |
>> > didn't help. To check that it wasn't corruption, I... |
11 |
>> > |
12 |
>> > * /etc/init.d/syslog-ng stop |
13 |
>> > * emerge --unmerge syslog-ng |
14 |
>> > * rm -rf /etc/syslog-ng |
15 |
>> > * emerge --unmerge syslog-ng |
16 |
>> > * /etc/init.d/syslog-ng start |
17 |
>> > |
18 |
>> > Still nothing on tty12. Any ideas? |
19 |
>> |
20 |
>> This entry in /etc/syslog-ng/syslog-ng.conf should do it: |
21 |
>> |
22 |
>> # By default messages are logged to tty12... |
23 |
>> destination console_all { file("/dev/tty12"); }; |
24 |
> |
25 |
> Already have that. Here's the entire file... |
26 |
> |
27 |
>###################################################################### |
28 |
>@version: 3.17 |
29 |
># |
30 |
># Syslog-ng default configuration file for Gentoo Linux |
31 |
> |
32 |
># https://bugs.gentoo.org/426814 |
33 |
>@include "scl.conf" |
34 |
> |
35 |
>options { |
36 |
> threaded(yes); |
37 |
> chain_hostnames(no); |
38 |
> |
39 |
> # The default action of syslog-ng is to log a STATS line |
40 |
> # to the file every 10 minutes. That's pretty ugly after a while. |
41 |
> # Change it to every 12 hours so you get a nice daily update of |
42 |
> # how many messages syslog-ng missed (0). |
43 |
> stats_freq(43200); |
44 |
> # The default action of syslog-ng is to log a MARK line |
45 |
> # to the file every 20 minutes. That's seems high for most |
46 |
> # people so turn it down to once an hour. Set it to zero |
47 |
> # if you don't want the functionality at all. |
48 |
> mark_freq(3600); |
49 |
>}; |
50 |
> |
51 |
>source src { system(); internal(); }; |
52 |
> |
53 |
>destination messages { file("/var/log/messages"); }; |
54 |
> |
55 |
># By default messages are logged to tty12... |
56 |
>destination console_all { file("/dev/tty12"); }; |
57 |
># ...if you intend to use /dev/console for programs like xconsole |
58 |
># you can comment out the destination line above that references |
59 |
>/dev/tty12 |
60 |
># and uncomment the line below. |
61 |
>#destination console_all { file("/dev/console"); }; |
62 |
> |
63 |
>log { source(src); destination(messages); }; |
64 |
>log { source(src); destination(console_all); }; |
65 |
>###################################################################### |
66 |
|
67 |
I remember once seeing an option somewhere specifying the amount of virtual consoles. Maybe tty12 doesn't exist? |
68 |
|
69 |
To check if it is something like this or something else, can you try tty1? (Be ready to stop syslog without being able to read what you type if there is a lot of logging) |
70 |
|
71 |
-- |
72 |
Joost |
73 |
-- |
74 |
Sent from my Android device with K-9 Mail. Please excuse my brevity. |