diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-17 13:58:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 13:58:39 +0200 |
commit | 1564005b69137830ef8168dcce2e0701f85bb92e (patch) | |
tree | 71c451dbc5f7bed3d8c616691254660b97938fd5 /op-mode-definitions/dhcp.xml.in | |
parent | e9232c7a751ffec34f18e1734cb18ac01da35cb7 (diff) | |
parent | c74ae852152b0c3c3f00a1847d081d28f500e178 (diff) | |
download | vyos-1x-1564005b69137830ef8168dcce2e0701f85bb92e.tar.gz vyos-1x-1564005b69137830ef8168dcce2e0701f85bb92e.zip |
Merge pull request #3817 from c-po/op-mode-restart
op-mode: T6577: create generic service restart helper to work with the API
Diffstat (limited to 'op-mode-definitions/dhcp.xml.in')
-rw-r--r-- | op-mode-definitions/dhcp.xml.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/dhcp.xml.in b/op-mode-definitions/dhcp.xml.in index eee6937d6..b3438ab80 100644 --- a/op-mode-definitions/dhcp.xml.in +++ b/op-mode-definitions/dhcp.xml.in @@ -245,7 +245,7 @@ <properties> <help>Restart DHCP server</help> </properties> - <command>if cli-shell-api existsActive service dhcp-server; then sudo systemctl restart kea-dhcp4-server.service; else echo "DHCP server not configured"; fi</command> + <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name dhcp</command> </node> <node name="relay-agent"> <properties> @@ -264,7 +264,7 @@ <properties> <help>Restart DHCPv6 server</help> </properties> - <command>if cli-shell-api existsActive service dhcpv6-server; then sudo systemctl restart kea-dhcp6-server.service; else echo "DHCPv6 server not configured"; fi</command> + <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name dhcpv6</command> </node> <node name="relay-agent"> <properties> |