summaryrefslogtreecommitdiff
path: root/op-mode-definitions/clear-log.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-05-30 12:06:24 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-30 12:06:24 +0200
commit3e6e4a1738dc2bcf173c6e450ad4d43dda54f283 (patch)
tree125032e9b998ceef0a8718044cdb127034f63caa /op-mode-definitions/clear-log.xml.in
parentf357cf58f7bd1892f85bb26003c62b1d44753e0a (diff)
downloadvyos-1x-3e6e4a1738dc2bcf173c6e450ad4d43dda54f283.tar.gz
vyos-1x-3e6e4a1738dc2bcf173c6e450ad4d43dda54f283.zip
op-mode: T3589: add "clear log" command to vacuume journald
Diffstat (limited to 'op-mode-definitions/clear-log.xml.in')
-rw-r--r--op-mode-definitions/clear-log.xml.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/op-mode-definitions/clear-log.xml.in b/op-mode-definitions/clear-log.xml.in
new file mode 100644
index 000000000..1f4a1aacd
--- /dev/null
+++ b/op-mode-definitions/clear-log.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="clear">
+ <children>
+ <leafNode name="log">
+ <properties>
+ <help>Clear contents of current master log file</help>
+ </properties>
+ <command>sudo journalctl --rotate --vacuum-time=1s</command>
+ </leafNode>
+ </children>
+ </node>
+</interfaceDefinition>