summaryrefslogtreecommitdiff
path: root/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2019-02-28 18:27:46 +0100
committerBen Pfaff <blp@ovn.org>2019-02-28 14:29:21 -0800
commitf385abded52064364e13a188d1ddfcb02dce4df7 (patch)
treec1cc3da9cace61b1f5977b32a047b0e2335693d7 /rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
parent8511af877c4de0d3e58dbfea326c5cfd9802b774 (diff)
downloadopenvswitch-f385abded52064364e13a188d1ddfcb02dce4df7.tar.gz
rhel: Use PIDFile on forking systemd service files
Currently, PIDFile is not used in systemd service files with Type=forking. This means sometimes systemd fails to restart a daemon that is killed (with SIGKILL) or that is crashed. This commit adds PIDFile to all systemd service file with Type=forking in order to always have the correct PID to monitor. Reported-at: https://bugzilla.redhat.com/1653717 Reported-by: Candido Campos <ccamposr@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel/usr_lib_systemd_system_ovs-vswitchd.service.in')
-rw-r--r--rhel/usr_lib_systemd_system_ovs-vswitchd.service.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
index 317aa993c..edd76493c 100644
--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
@@ -9,6 +9,7 @@ PartOf=openvswitch.service
[Service]
Type=forking
+PIDFile=/var/run/openvswitch/ovs-vswitchd.pid
Restart=on-failure
Environment=XDG_RUNTIME_DIR=/var/run/openvswitch
EnvironmentFile=/etc/openvswitch/default.conf