diff --git a/data/conf/logging/deb_logrotate.conf b/data/conf/logging/deb_logrotate.conf index 8bba80fd3..dc4f36caf 100644 --- a/data/conf/logging/deb_logrotate.conf +++ b/data/conf/logging/deb_logrotate.conf @@ -1,4 +1,4 @@ -/var/log/CGRateS/CGRateS.log { +/var/log/cgrates/CGRateS.log { daily missingok rotate 31 diff --git a/data/conf/logging/deb_rsyslog.conf b/data/conf/logging/deb_rsyslog.conf index 53eaf3ae4..65191aa4a 100644 --- a/data/conf/logging/deb_rsyslog.conf +++ b/data/conf/logging/deb_rsyslog.conf @@ -1,2 +1,2 @@ -if $programname startswith "CGRateS" or $programname startswith "cgr-engine" then /var/log/CGRateS/CGRateS.log +if $programname startswith "CGRateS" or $programname startswith "cgr-engine" then /var/log/cgrates/CGRateS.log & stop diff --git a/packages/jessie/rules b/packages/jessie/rules index e129db538..43349cda3 100755 --- a/packages/jessie/rules +++ b/packages/jessie/rules @@ -33,8 +33,8 @@ binary-arch: clean cp -r $(CURDIR)/data/conf/cgrates $(PKGDIR)/etc/ mkdir -p $(PKGDIR)/etc/logrotate.d mkdir -p $(PKGDIR)/etc/rsyslog.d - cp -r $(CURDIR)/data/conf/logging/deb_logrotate.conf $(PKGDIR)/etc/logrotate.d/CGRateS - cp -r $(CURDIR)/data/conf/logging/deb_rsyslog.conf $(PKGDIR)/etc/rsyslog.d/25-CGRateS.conf + cp -r $(CURDIR)/data/conf/logging/deb_logrotate.conf $(PKGDIR)/etc/logrotate.d/cgrates + cp -r $(CURDIR)/data/conf/logging/deb_rsyslog.conf $(PKGDIR)/etc/rsyslog.d/25-cgrates.conf mkdir -p $(PKGDIR)/usr/share/cgrates cp -r $(CURDIR)/data/* $(PKGDIR)/usr/share/cgrates/ tar -xzvf $(PKGDIR)/usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz -C $(PKGDIR)/usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/ @@ -47,7 +47,7 @@ binary-arch: clean mkdir -p $(PKGDIR)/var/spool/cgrates/failed_posts mkdir -p $(PKGDIR)/var/lib/cgrates/history mkdir -p $(PKGDIR)/var/lib/cgrates/cache_dump - mkdir -p $(PKGDIR)/var/log/CGRateS + mkdir -p $(PKGDIR)/var/log/cgrates dh_strip dh_compress dh_fixperms diff --git a/packages/squeeze/rules b/packages/squeeze/rules index c71bb36bc..93b04894a 100755 --- a/packages/squeeze/rules +++ b/packages/squeeze/rules @@ -32,8 +32,8 @@ binary-arch: clean cp -r $(CURDIR)/data/conf/cgrates $(PKGDIR)/etc/ mkdir -p $(PKGDIR)/etc/logrotate.d mkdir -p $(PKGDIR)/etc/rsyslog.d - cp -r $(CURDIR)/data/conf/logging/deb_logrotate.conf $(PKGDIR)/etc/logrotate.d/CGRateS - cp -r $(CURDIR)/data/conf/logging/deb_rsyslog.conf $(PKGDIR)/etc/rsyslog.d/25-CGRateS.conf + cp -r $(CURDIR)/data/conf/logging/deb_logrotate.conf $(PKGDIR)/etc/logrotate.d/cgrates + cp -r $(CURDIR)/data/conf/logging/deb_rsyslog.conf $(PKGDIR)/etc/rsyslog.d/25-cgrates.conf mkdir -p $(PKGDIR)/usr/share/cgrates cp -r $(CURDIR)/data/* $(PKGDIR)/usr/share/cgrates/ tar -xzvf $(PKGDIR)/usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/freeswitch_conf.tar.gz -C $(PKGDIR)/usr/share/cgrates/tutorials/fs_evsock/freeswitch/etc/ @@ -46,7 +46,7 @@ binary-arch: clean mkdir -p $(PKGDIR)/var/spool/cgrates/failed_posts mkdir -p $(PKGDIR)/var/lib/cgrates/history mkdir -p $(PKGDIR)/var/lib/cgrates/cache_dump - mkdir -p $(PKGDIR)/var/log/CGRateS + mkdir -p $(PKGDIR)/var/log/cgrates dh_strip dh_compress dh_fixperms