#!/bin/bash
|
if [ -f /home/pc1/parkwatch.pid ]; then
|
PID=$(cat /home/pc1/parkwatch.pid)
|
|
if ps -p $PID > /dev/null; then
|
kill $PID
|
echo "Parwatch process ($PID) stopped successfully."
|
else
|
echo "No running parkwatch process found with PID $PID."
|
fi
|
|
rm -f /home/pc1/parkwatch.pid
|
else
|
echo "PID file not found. Is parkwatch running?"
|
fi
|