po/tools/rc.po_worker

14 lines
255 B
Bash
Executable File

#!/bin/sh
PO_DIR=/path/to/po_installation/src
USER=user_webserver_runs_as
if ps auxwww |grep -q photo_worker | grep -v grep ; then
cd $PO_DIR
sudo -u apache php photo_worker.php > /dev/null 2>&1 < /dev/null
else
echo "worker already running!"
fi