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