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)
@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