Skip to content

Commit

Permalink
Add stenographer logging
Browse files Browse the repository at this point in the history
 add logging to stenographer process

Adds the '-v 1' option when launching stenographer to enable verbose level 1 on stenographer.  Stenotype logging was already enabled.

Also moves the stdio redirect to the top of the script so that stenokeys.sh output also goes to logfile instead of to docker logs output.

Also adds a couple of strategic exec commands to avoid intermediate shells.
  • Loading branch information
petiepooo authored Jan 30, 2024
1 parent af9ff63 commit bec455d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion so-steno/files/so-steno.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
exec >> /var/log/stenographer/stenographer.log 2>&1

# Generate the keys if they have not been already
/usr/bin/stenokeys.sh 941 939

chown -R 941:939 /etc/stenographer/certs

runuser -l stenographer -c '/usr/bin/stenographer --syslog=false >> /var/log/stenographer/stenographer.log 2>&1'
exec runuser -l stenographer -c 'exec /usr/bin/stenographer -v 1 --syslog=false'

0 comments on commit bec455d

Please sign in to comment.