Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 21 lines (15 sloc) 393 Bytes
#!/bin/bash
now=$(date +%c)
printf "$now -- "
process="$(pgrep -f uhr)"
# change into scripts directory
## ONLY ON BASH!
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR
if [ -z "$process" ]; then
printf "restarting .....................\n\n\n"
./mailrestart.sh "$now"
python -u uhr-multithreading.py >> /var/log/raspytime.log 2>&1 &
else
printf "still running\n"
fi