Skip to content

Commit

Permalink
rhel, debian: Add missing restart policy to ipsec service.
Browse files Browse the repository at this point in the history
Currently, if openvswitch-ipsec service will die for any reason it
will not be restarted. At the same time, that will prevent updating
tunnel configuration and prohibit adding new nodes in OVN clusters,
for example.

Add the 'on-failure' restart policy, so it behaves the same as all
other OVS daemons.

Acked-by: Frode Nordahl <[email protected]>
Signed-off-by: Ilya Maximets <[email protected]>
  • Loading branch information
igsilya committed Jan 16, 2025
1 parent 46af8a2 commit 77a63b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions debian/openvswitch-ipsec.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ After=openvswitch-switch.service
[Service]
Type=forking
PIDFile=/run/openvswitch/ovs-monitor-ipsec.pid
Restart=on-failure
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl --no-monitor \
--ike-daemon=strongswan start-ovs-ipsec
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop-ovs-ipsec
Expand Down
1 change: 1 addition & 0 deletions rhel/usr_lib_systemd_system_openvswitch-ipsec.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ After=openvswitch.service
[Service]
Type=forking
PIDFile=/run/openvswitch/ovs-monitor-ipsec.pid
Restart=on-failure
ExecStart=/usr/share/openvswitch/scripts/ovs-ctl --no-monitor \
--ike-daemon=libreswan start-ovs-ipsec
ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop-ovs-ipsec
Expand Down

0 comments on commit 77a63b5

Please sign in to comment.