summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-10-15 22:28:50 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-10-15 22:28:50 (EDT)
commitc0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62 (patch)
tree5c39ef71fb0f726cccd5af74d266d96f61266d4a
parent30536928fd13d6bf28fb86077e90c94f3846b6a8 (diff)
downloadprintq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.zip
printq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.tar.gz
printq-c0542ff0bb3c1da12c7d5bd2cbe2bc79dfb28d62.tar.bz2
Log to syslog
-rwxr-xr-xprintq2
1 files changed, 2 insertions, 0 deletions
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}}"