signal für neue LogFiles erstellt. FileHandler werden umgehängt

logrotate ruft signal SIGUSR1 auf
Ausgaben des Python PLC Programms über eine PIPE führen um diese in neuen
Loghandler zu schreiben
proginit als globales Modul umgebaut (kein Vererbung mehr)
This commit is contained in:
2017-03-21 18:14:05 +01:00
parent 88ee0e4eae
commit b3c7544daa
7 changed files with 976 additions and 119 deletions

View File

@@ -1,12 +1,4 @@
/var/log/revpipyload
{
rotate 6
weekly
compress
delaycompress
missingok
notifempty
}
/var/log/revpipyloadapp
{
rotate 6
@@ -15,4 +7,7 @@
delaycompress
missingok
notifempty
postrotate
kill -SIGUSR1 `cat /var/run/revpipyload.pid` > /dev/null 2>&1 || true
endscript
}