summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-ntp.xml.in
blob: 8a64a89eccdff9913da6ade5d80fea253710a09b (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>bash -c 'if cli-shell-api existsActive service ntp; then systemctl restart chrony.service; else echo "Service NTP not configured"; fi'</command>
      </node>
    </children>
  </node>
</interfaceDefinition>