summaryrefslogtreecommitdiff
path: root/op-mode-definitions/restart-ssh.xml.in
blob: 6504cc18a58653719444c786ce0514edae4c9306 (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="ssh">
        <properties>
          <help>Restart SSH service</help>
        </properties>
        <command>if cli-shell-api existsActive service ssh; then sudo systemctl restart ssh.service; else echo "Service SSH not configured"; fi</command>
      </node>
    </children>
  </node>
</interfaceDefinition>