#!/bin/bash status="OFF" running=$(/usr/bin/pgrep archiver) if [ -f "/home/debian/CONFIG/archiver/STATUS" ]; then status=$(cat /home/debian/CONFIG/archiver/STATUS); fi if [ ! -z "$running" ]; then status="OFF"; fi if [ $status == "ON" ]; then (/home/debian/CONFIG/archiver/bin/archiver /home/debian/CONFIG/archiver &>/dev/null&); fi