Files
liberama/docs/omnireader.ru/cron_server.sh

9 lines
160 B
Bash
Executable File

#!/bin/bash
if ! pgrep -x "liberama" > /dev/null ; then
sudo -H -u www-data /home/liberama/liberama
else
echo "Process 'liberama' already running"
fi