]> arthur.barton.de Git - netdata.git/commitdiff
use try-restart in logrotate sample
authorElan Ruusamäe <glen@delfi.ee>
Mon, 23 May 2016 08:51:23 +0000 (11:51 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 23 May 2016 08:51:23 +0000 (11:51 +0300)
now that #440 is merged, can use try-restart action

system/netdata.logrotate.in

index e77d5ff72bf0b3bc289c32ed67f4ec97020bd47a..5c1e19d56c45c8b8f754359f8821b7bc1c553a75 100644 (file)
@@ -14,8 +14,6 @@
        copytruncate
        #
        #postrotate
-       #       if service netdata status > /dev/null ; then \
-       #               service netdata restart > /dev/null; \
-       #       fi;
+       #       /sbin/service netdata try-restart >/dev/null
        #endscript
 }