Run process if not already running (Bash)
if [ -z "$(pidof -x "$1")" ]; then "$1" & exit 0; else exit 1;fi
Checks if the process specified by the argument ($1) is running; if not, it starts the process in the background. Exits with 0 if successful, or 1 if the process is already running.