Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (22 sloc) 0.495 kB
#!/bin/bash
DDIR='/home/williamjxj/scraper/daemons/'
cd ${DDIR}
echo "Currently status: "
ps -ef | grep perl | grep -v grep
echo "Now killing current process: "
if [ -x ./killD.sh ]; then
./killD.sh
fi
echo "Now Restart Daemon process: "
for i in `ls *D.pl`
do
ps -ef | grep $i | grep -v grep >/dev/null 2>&1
if [ $? -eq 0 ]; then
echo "$i is already running."
else
${DDIR}$i
echo "$i NOW is starting running..."
fi
done
echo "Latest status: "
ps -ef | grep perl | grep -v grep
Jump to Line
Something went wrong with that request. Please try again.