view host/restart.sh @ 1666:8f38abaf779f

process error handling
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 07 May 2022 23:23:03 -0600
parents 520707a70379
children
line wrap: on
line source

#!/bin/bash

set -e

cd `dirname $0`;

if [ "$1" == "monitoring" ]; then
	if [ ! -f "started.lock" ]; then
		echo "stopped with stop script";
		exit 0;
    fi;
fi;
./stop.sh;
./start.sh;