Project

General

Profile

Actions

Bug #13482

open

logadm can’t handle rsyslog

Added by Christoph Binner over 2 years ago. Updated over 2 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

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.

Actions #1

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

Actions

Also available in: Atom PDF