add bta weather data to weatherdaemon

This commit is contained in:
Edward Emelianov
2021-06-09 21:12:43 +03:00
parent 0028ba8a4b
commit 6bfcc8730c
15 changed files with 1398 additions and 51 deletions

View File

@@ -0,0 +1,3 @@
Создать директорию /var/log/telescopes (хозяин - eddy)
В local.d запускать netdaemons_start
Ротация логов - robotel -> /etc/logrotate.d

View File

@@ -0,0 +1,13 @@
#!/bin/bash
LOGDIR=/var/log/telescope
killall teldaemon
killall domedaemon
killall stellariumdaemon
killall -9 teldaemon
killall -9 domedaemon
killall -9 stellariumdaemon
~/bin/teldaemon -d /dev/ttyS0 -l ${LOGDIR}/teldaemon.log
~/bin/domedaemon -d /dev/ttyS2 -l ${LOGDIR}/domedaemon.log
~/bin/stellariumdaemon -d /dev/ttyS1 -l ${LOGDIR}/stellariumdaemon.log

View File

@@ -0,0 +1,7 @@
/var/log/telescope/*.log {
size 1M
rotate 10
compress
notifempty
missingok
}