Changed Log Directory

This commit is contained in:
2018-09-25 20:03:59 +02:00
parent 63f634f771
commit 196e5a5d39

3
startlactor.sh Normal file → Executable file
View File

@@ -1,9 +1,10 @@
#! /bin/bash
while true; do
cd /opt/lactor
echo "Starting Lactor in `pwd` at `date`" >> /var/log/lactor/startstop.log
#echo "BDE restarted" | mail -s "BDE Restart" admin@apc910.finoba.by
python3 ./lactor.py `pwd` 2>&1 >> log_`date -Idate`.txt
echo "Lactor stopped in `pwd` at `date`" >> /var/log/bde/startstop.log
echo "Lactor stopped in `pwd` at `date`" >> /var/log/lactor/startstop.log
sleep 2
done