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