From c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Fri, 15 Oct 2021 22:28:50 -0400 Subject: Log to syslog --- diff --git a/printq b/printq index f6e2f23..b4f9a23 100755 --- a/printq +++ b/printq @@ -33,6 +33,7 @@ print_from_queue() set -- "${@}" -o "${opt}" done 0<"${queue}/.options" + logger -t 'printq' "Printing ${queue}/${file}" lp "${@}" "${queue}/${file}" || return 1 rm -f "${queue}/${file}" || return 1 @@ -48,6 +49,7 @@ watch_queues() local event_filename= local dest= + logger -t 'printq' "Watching queues under ${dir}" inotifywait -m -r -q -e close_write "${dir}" | \ while read -r watched_filename event_names event_filename; do dest="${watched_filename#${dir}}" -- cgit v0.9.1