14 lines
204 B
Plaintext
14 lines
204 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
logfile=baselineserver.log
|
||
|
|
||
|
while true; do
|
||
|
echo >> $logfile
|
||
|
echo -n "***RESTARTING*** " >> $logfile
|
||
|
date >> $logfile
|
||
|
|
||
|
./baselineserver 2>&1 | tee -a $logfile
|
||
|
|
||
|
sleep 2
|
||
|
done
|