From 3f19558e73510035496fae9d1e779c34e536f93a Mon Sep 17 00:00:00 2001 From: Roi Dayan Date: Mon, 6 Jan 2025 13:09:15 +0200 Subject: [PATCH] debian: Use PIDFile with systemd. This commit adds PIDFile to all systemd service file with Type=forking in order to always have the correct PID to monitor. Related commit: f385abded520 rhel: Use PIDFile on forking systemd service files Acked-by: Eli Britstein Signed-off-by: Roi Dayan Signed-off-by: Ilya Maximets --- debian/openvswitch-switch.ovs-vswitchd.service | 1 + debian/openvswitch-switch.ovsdb-server.service | 1 + 2 files changed, 2 insertions(+) diff --git a/debian/openvswitch-switch.ovs-vswitchd.service b/debian/openvswitch-switch.ovs-vswitchd.service index 519d80d8e..a4d445b95 100644 --- a/debian/openvswitch-switch.ovs-vswitchd.service +++ b/debian/openvswitch-switch.ovs-vswitchd.service @@ -11,6 +11,7 @@ DefaultDependencies=no [Service] LimitNOFILE=1048576 Type=forking +PIDFile=/run/openvswitch/ovs-vswitchd.pid Restart=on-failure Environment=HOME=/var/run/openvswitch EnvironmentFile=-/etc/default/openvswitch-switch diff --git a/debian/openvswitch-switch.ovsdb-server.service b/debian/openvswitch-switch.ovsdb-server.service index 339665b25..e0b0a727e 100644 --- a/debian/openvswitch-switch.ovsdb-server.service +++ b/debian/openvswitch-switch.ovsdb-server.service @@ -8,6 +8,7 @@ DefaultDependencies=no [Service] LimitNOFILE=1048576 Type=forking +PIDFile=/run/openvswitch/ovsdb-server.pid Restart=on-failure EnvironmentFile=-/etc/default/openvswitch-switch ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \