diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2016-04-19 13:00:06 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2016-04-19 13:00:06 +0300 |
commit | e4506e87f913284acc0a01033b26f53d7145e639 (patch) | |
tree | 754bc4432b2f5103bde5259086717b29c4c4a786 /system | |
parent | 1c510842023d105ec04220404905fc8f6b255b09 (diff) | |
parent | 62d8fc5c2279613fe86456ff0f6c99ad699d6ca4 (diff) |
Merge pull request #132 from mcnewton/debianpkg
Add Debian packaging
Diffstat (limited to 'system')
-rw-r--r-- | system/Makefile.am | 3 | ||||
-rw-r--r-- | system/netdata.logrotate.in | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/system/Makefile.am b/system/Makefile.am index ca22cd55d7..f16a720e2d 100644 --- a/system/Makefile.am +++ b/system/Makefile.am @@ -4,6 +4,7 @@ MAINTAINERCLEANFILES= $(srcdir)/Makefile.in CLEANFILES = \ netdata-openrc \ + netdata.logrotate \ netdata.service \ netdata-init-d \ $(NULL) @@ -14,12 +15,14 @@ SUFFIXES = .in nodist_noinst_DATA = \ netdata-openrc \ + netdata.logrotate \ netdata.service \ netdata-init-d \ $(NULL) dist_noinst_DATA = \ netdata-openrc.in \ + netdata.logrotate.in \ netdata.service.in \ netdata-init-d.in \ netdata.conf \ diff --git a/system/netdata.logrotate.in b/system/netdata.logrotate.in new file mode 100644 index 0000000000..763eb09c93 --- /dev/null +++ b/system/netdata.logrotate.in @@ -0,0 +1,15 @@ +@localstatedir_POST@/log/netdata/*.log { + daily + missingok + rotate 14 + compress + delaycompress + notifempty + sharedscripts + postrotate + if service netdata status > /dev/null ; then \ + service netdata restart > /dev/null; \ + fi; + endscript +} + |