equal
deleted
inserted
replaced
|
1 # check version |
|
2 /usr/lib/rsyslog/rsyslogd -v |
|
3 |
|
4 |
|
5 |
|
6 # test that rsyslog does not contain our workspace path but rather relative paths |
|
7 /usr/lib/rsyslog/rsyslogd -d -n 2>&1 | grep ': source file' |
|
8 |
|
9 |
|
10 |
|
11 # Disable native syslog, enable rsyslog |
|
12 svcadm disable system/system-log:default |
|
13 sleep 5 |
|
14 svcadm enable system/system-log:rsyslog |
|
15 sleep 5 |
|
16 svcs -x |
|
17 |
|
18 |
|
19 |
|
20 ======================= to the end of /etc/rsyslog.conf ======================== |
|
21 $FileGroup openldap |
|
22 *.* /var/tmp/openldap |
|
23 $ResetConfigVariables |
|
24 ================================================================================ |
|
25 rm -f /var/tmp/openldap |
|
26 svcadm restart system/system-log:rsyslog |
|
27 logger -p error "openldap" |
|
28 ls -l /var/tmp/openldap |
|
29 -rw-r--r-- 1 root openldap 2873 Jun 22 10:36 /var/tmp/openldap |
|
30 # Make sure that the new file has 'openldap' group |