summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-ntp.xml.in
blob: 961fae252976c49c32784cc8403c67ad1cf5753a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0"?>
<interfaceDefinition>
  <node name="restart">
    <children>
      <node name="ntp">
        <properties>
          <help>Restart NTP service</help>
        </properties>
        <command>if cli-shell-api existsActive service ntp; then sudo systemctl restart chrony.service; else echo "Service NTP not configured"; fi</command>
      </node>
    </children>
  </node>
</interfaceDefinition>