summaryrefslogtreecommitdiff
path: root/templates/system/syslog/global/archive/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/system/syslog/global/archive/node.def')
-rw-r--r--templates/system/syslog/global/archive/node.def8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/system/syslog/global/archive/node.def b/templates/system/syslog/global/archive/node.def
new file mode 100644
index 0000000..dcfc244
--- /dev/null
+++ b/templates/system/syslog/global/archive/node.def
@@ -0,0 +1,8 @@
+help: "Configure log file size and rotation characteristics"
+# need mandatory files & size
+create: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+'$(files/@)' '$(size/@)' 1\" "
+update: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+'$(files/@)' '$(size/@)' 1\" "
+delete: "sh -c \"/opt/vyatta/sbin/vyatta_update_logrotate.pl \
+'$(files/@)' '$(size/@)' 0\" "