Bug #13482
openlogadm can’t handle rsyslog
0%
Description
Filed as a bug after feedback from [OmniOS-discuss]
With OmniOS r151036
I switched to rsyslog
. cron
keeps giving me these errors:
logadm: Warning: command failed: /bin/sh -c kill -HUP `cat
/var/run/syslog.pid`
cat: /var/run/syslog.pid: cannot open [No such file or directory]
Usage: kill [-l] [-n signum] [-s signame] job ...
Or: kill [ options ] -l [arg ...]
logadm: Warning: command error, exit 2: /bin/sh -c kill -HUP `cat
/var/run/syslog.pid`
rsyslog
creates /var/run/rsyslogd.pid
rather than /var/run/syslog.pid
/etc/logadm.conf
could have something more generic than the current/var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/syslog.pid`'
/var/adm/messages -C 4 -a 'kill -HUP `cat /var/run/syslog.pid`'
I’m not sure what the best alternative is.
Updated by Christoph Binner over 2 years ago
I looked into a SmartOS zone which has
# grep syslog /etc/logadm.conf
/var/log/syslog -C 8 -a 'kill -HUP `cat /var/run/*syslog*.pid`'
/var/adm/messages -C 4 -a 'kill -HUP `cat /var/run/*syslog*.pid`'
/var/log/authlog -C 5 -a 'kill -HUP `cat /var/run/*syslog*.pid`' -s 100m
/var/log/maillog -C 5 -a 'kill -HUP `cat /var/run/*syslog*.pid`' -s 100m