diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-16 21:28:55 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-07-17 19:06:53 +0200 |
commit | f773368df7c5eb40a8c6334ebbed2de88bdb21af (patch) | |
tree | 2dce59ca4d9bc1b396dd87e4260aed1581f77575 /op-mode-definitions/igmp-proxy.xml.in | |
parent | 95d345c6600aa83abd6d3138ab5ef49abb73b0f3 (diff) | |
download | vyos-1x-f773368df7c5eb40a8c6334ebbed2de88bdb21af.tar.gz vyos-1x-f773368df7c5eb40a8c6334ebbed2de88bdb21af.zip |
op-mode: T6577: create generic service restart helper to work with the API
Right now we have multiple restart helpers (e.g. dhcp server, ssh, ntp) that
all do the same (more or less):
* Check if service is configured on CLI
* Restart if configured
* Error out if unconfigured
This is not available via the op-mode API. Create a new restart.py op-mode
helper that takes the service name and possible VRF as argument so it's also
exposed via API.
(cherry picked from commit c74ae852152b0c3c3f00a1847d081d28f500e178)
Diffstat (limited to 'op-mode-definitions/igmp-proxy.xml.in')
-rw-r--r-- | op-mode-definitions/igmp-proxy.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/igmp-proxy.xml.in b/op-mode-definitions/igmp-proxy.xml.in index 8533138d7..d6ad7ed7e 100644 --- a/op-mode-definitions/igmp-proxy.xml.in +++ b/op-mode-definitions/igmp-proxy.xml.in @@ -6,7 +6,7 @@ <properties> <help>Restart the IGMP proxy process</help> </properties> - <command>sudo systemctl restart igmpproxy.service</command> + <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name igmp_proxy</command> </node> </children> </node> |