rewrite inverter.php to function as daemon

add logrotate file
This commit is contained in:
2012-11-27 09:49:11 +01:00
parent e215af4d86
commit 728e41c5dc
4 changed files with 232 additions and 79 deletions

11
etc/logrotate.d/inverter Normal file
View File

@@ -0,0 +1,11 @@
/var/log/inverter.log {
rotate 15
compress
missingok
notifempty
sharedscripts
size 5M
postrotate
/bin/kill -HUP `cat /var/run/inverter/inverter.pid 2>/dev/null` 2> /dev/null || true
endscript
}