mirror of https://gitlab.com/bashrc2/epicyon
19 lines
413 B
Bash
Executable File
19 lines
413 B
Bash
Executable File
#!/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
|
|
if [ ! -f .threads.txt ]; then
|
|
echo 'No thread events'
|
|
else
|
|
cat .threads.txt
|
|
fi
|