Duke's utils
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
406 B

#!/bin/bash
# Stops and restarts hushd to avoid stupid bugs
# if hushd is not running, start it
#set -e
DIR="$HOME/git/hush3/src"
CLI="$DIR/hush-cli"
HUSHD="$DIR/hushd"
echo "Stopping hushd if it is running..."
$CLI stop
# TODO: look for lockfile
# testing
#sleep 5
# prod
sleep 30
# save some logs for now to debug
cp $DIR/hush.log $DIR/hush.log.prev-$$
# restart hushd
cd $DIR
$HUSHD &> hush.log &