1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00

Adding start/stop scripts.

This commit is contained in:
Henrik Hautakoski 2022-01-17 14:50:39 +01:00
parent 925db35646
commit 68426a8b5f
No known key found for this signature in database
GPG key ID: 608414D93E862CCD
2 changed files with 29 additions and 0 deletions

17
scripts/stop.sh Normal file
View file

@ -0,0 +1,17 @@
#!/bin/bash
PIDFILE="$(pwd)/eosio-ship-trace-reader.pid"
if [ -f "$PIDFILE" ]; then
pid=$(cat "$PIDFILE")
echo $pid
kill $pid
rm -r "$PIDFILE"
echo -ne "Stopping process"
while true; do
[ ! -d "/proc/$pid/fd" ] && break
echo -ne "."
sleep 1
done
echo -ne "\rProcesss stopped. \n"
fi