mirror of
https://github.com/genxium/DelayNoMore
synced 2024-12-26 11:48:56 +00:00
16 lines
321 B
Bash
16 lines
321 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
basedir=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
||
|
|
||
|
PID_FILE="$basedir/treasure-hunter.pid"
|
||
|
if [ -f $PID_FILE ]; then
|
||
|
pid=$( cat "$PID_FILE" )
|
||
|
if [ -z $pid ]; then
|
||
|
echo "There's no pid stored in $PID_FILE."
|
||
|
else
|
||
|
ps aux | grep "$pid"
|
||
|
fi
|
||
|
else
|
||
|
echo "There's no PidFile $PID_FILE."
|
||
|
fi
|