mirror of
https://github.com/drk1wi/portspoof.git
synced 2024-06-16 03:48:54 +00:00
Defer post-launch PID check
This commit is contained in:
parent
2470a8ac98
commit
0e3cecf975
@ -144,7 +144,7 @@ start)
|
||||
pid="$!"
|
||||
echo "echo -n \"$pid\" > $PIDFILE" | sudo -s
|
||||
fi
|
||||
|
||||
sleep 2
|
||||
pid=$(get_pid)
|
||||
if [ ! -d "/proc/$pid" ]; then
|
||||
rm -f "$PIDFILE" 2> /dev/null
|
||||
|
Loading…
Reference in New Issue
Block a user