Skip to content

Commit

Permalink
Merge pull request #3815 from vyos/mergify/bp/circinus/pr-3810
Browse files Browse the repository at this point in the history
op-mode: T6575: add support for NTP service restart via CLI (backport #3810)
  • Loading branch information
c-po authored Jul 15, 2024
2 parents 7b06b5a + 801cd75 commit 95d345c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions op-mode-definitions/restart-ntp.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,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>

0 comments on commit 95d345c

Please sign in to comment.