epicyon/scripts/threads

19 lines
413 B
Plaintext
Raw Normal View History

2022-03-13 11:03:26 +00:00
#!/bin/bash
dir_name="epicyon"
if [ ! -d /etc/${dir_name} ]; then
if [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
elif [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
elif [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
fi
fi
journalctl -u ${dir_name} | grep 'THREAD:' > .threads.txt
2022-03-13 11:03:26 +00:00
if [ ! -f .threads.txt ]; then
echo 'No thread events'
else
cat .threads.txt
fi