Skip to content

Commit

Permalink
suppress the delayed direct output of pfclient
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Sep 13, 2024
1 parent 7ca34bd commit 87dd8de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions rootfs/etc/s6-overlay/scripts/logwatcher
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/command/with-contenv bash
#shellcheck shell=bash

sleep 5
exec tail -c 100k -F /var/log/pfclient/*.log
while ! pgrep pfclient &>/dev/null; do
sleep 0.5
done
exec s6wrap --timestamps --quiet --prepend='pfclient_log' --args \
tail -c 100k -F /var/log/pfclient/*.log
2 changes: 1 addition & 1 deletion rootfs/etc/s6-overlay/scripts/pfclient
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#shellcheck shell=bash

exec s6-setuidgid nobody \
s6wrap --quiet --prepend='pfclient_daemon' --args \
s6wrap --ignore=stdout --quiet --prepend='pfclient_daemon' --args \
/usr/local/bin/pfclient \
--connection_type=1 \
--address="${BEASTHOST}" \
Expand Down

0 comments on commit 87dd8de

Please sign in to comment.