Created
June 15, 2021 05:08
-
-
Save Satys/8d6b002a5ca3ebc9040d46c2dd0bfdbc to your computer and use it in GitHub Desktop.
Reload rsyslog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f /var/run/rsyslogd.pid ] && kill -TERM $(cat /var/run/rsyslogd.pid); then | |
/usr/sbin/rsyslogd -f /etc/rsyslog.d/rsyslog.conf | |
else | |
/usr/sbin/rsyslogd -f /etc/rsyslog.d/rsyslog.conf | |
fi | |
echo "[DEBUG] - `(date +%F\ %T)` - rsyslog daemon reload complete" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment