Commit d4d336b3 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Added logrotate for logs

parent 187168a4
all: acs-cwmp-service acs-fs-service acs-nbi-service genieacs-config
all: acs-cwmp-service acs-fs-service acs-nbi-service acs-ui-service genieacs-config acs-logrotate
dd if=/dev/zero of=swap bs=1048576 count=1024
chmod 600 swap
mkswap swap
......@@ -10,6 +10,7 @@ all: acs-cwmp-service acs-fs-service acs-nbi-service genieacs-config
mv genieacs-1.2.5/dist /srv/genieacs
@echo "$$GENIEACS_CONFIG" > /etc/config/genieacs
@echo "$$GENIEACS_LOGROTATE" > /etc/logrotate.d/genieacs
install -v -Dm755 genieacs /usr/share/easycwmp/functions
install -v -Dm755 genieacs-init /usr/sbin/genieacs-init
......@@ -103,3 +104,23 @@ config acs 'settings'
option secret ''
endef
export GENIEACS_CONFIG
acs-logrotate:
define GENIEACS_LOGROTATE
/var/log/genieacs/*access.log {
daily
rotate 91
missingok
sharedscripts
compress
}
/var/log/genieacs/*error.log {
daily
rotate 91
missingok
sharedscripts
compress
}
endef
export GENIEACS_LOGROTATE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment