Skip to content

Instantly share code, notes, and snippets.

@Satys
Created June 15, 2021 04:56
Show Gist options
  • Save Satys/504d980b2db9f394c9c73bb8b5bdd8a8 to your computer and use it in GitHub Desktop.
Save Satys/504d980b2db9f394c9c73bb8b5bdd8a8 to your computer and use it in GitHub Desktop.
Rsyslog live reload - 1
inotifywait --quiet --monitor --event CLOSE_WRITE /etc/rsyslog.d/rsyslog.conf \
| while read change; do
echo "[DEBUG] - `(date +%F\ %T)` - rsyslog daemon reload start"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment