Skip to content

Instantly share code, notes, and snippets.

@areichman
Created August 24, 2016 15:44
Show Gist options
  • Save areichman/af5f169201fcf99d00e124ba4b6d7a49 to your computer and use it in GitHub Desktop.
Save areichman/af5f169201fcf99d00e124ba4b6d7a49 to your computer and use it in GitHub Desktop.
Reload rsyslog configuration without restarting
# Restart rsyslog so it re-opens its file pointer (e.g. during logrotate postrotate script)
# via https://access.redhat.com/solutions/232793
kill -HUP $(cat /var/run/syslogd.pid)
@rajubi1981
Copy link

Will this work properly with on RHEL7.4 , rsyslog v8.24

@rajubi1981
Copy link

Is there any alternative to reload rsyslog configuration without restart of rsyslog which is expensive.

@weishen
Copy link

weishen commented Oct 19, 2018

it is not working for rhel6 rsyslog-8.16.0-2.el6.x86_64

@ww9rivers
Copy link

ww9rivers commented Feb 15, 2019

On SUSE (SLES12-SP3, with rsyslog version 8.24.0-3.16.1), this does not seem to work.

Also, the PID file is /var/run/rsyslogd.pid

@gaaf
Copy link

gaaf commented Aug 30, 2019

The description is plain wrong. The configuration can not be reloaded without restarting rsyslog.

SIGHUP only reopens log files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment