diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-18 10:27:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-18 10:27:07 +0200 |
commit | 360a3a73b6d5e9a238ab4ba86879b1c27fa86104 (patch) | |
tree | 2dce59ca4d9bc1b396dd87e4260aed1581f77575 /op-mode-definitions/vpn-ipsec.xml.in | |
parent | 95d345c6600aa83abd6d3138ab5ef49abb73b0f3 (diff) | |
parent | f773368df7c5eb40a8c6334ebbed2de88bdb21af (diff) | |
download | vyos-1x-360a3a73b6d5e9a238ab4ba86879b1c27fa86104.tar.gz vyos-1x-360a3a73b6d5e9a238ab4ba86879b1c27fa86104.zip |
Merge pull request #3819 from vyos/mergify/bp/circinus/pr-3817
op-mode: T6577: create generic service restart helper to work with the API (backport #3817)
Diffstat (limited to 'op-mode-definitions/vpn-ipsec.xml.in')
-rw-r--r-- | op-mode-definitions/vpn-ipsec.xml.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/op-mode-definitions/vpn-ipsec.xml.in b/op-mode-definitions/vpn-ipsec.xml.in index b551af2be..0a8671aeb 100644 --- a/op-mode-definitions/vpn-ipsec.xml.in +++ b/op-mode-definitions/vpn-ipsec.xml.in @@ -112,7 +112,7 @@ <properties> <help>Restart the IPsec VPN process</help> </properties> - <command>if systemctl is-active --quiet strongswan; then sudo systemctl restart strongswan ; echo "IPsec process restarted"; else echo "IPsec process not running" ; fi</command> + <command>sudo ${vyos_op_scripts_dir}/restart.py restart_service --name ipsec</command> </node> </children> </node> |