summaryrefslogtreecommitdiff
path: root/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
diff options
context:
space:
mode:
authorTimothy Redaelli <tredaelli@redhat.com>2021-05-12 17:08:08 +0200
committerIlya Maximets <i.maximets@ovn.org>2021-11-08 22:45:49 +0100
commit113f925aa5026ef2b5d57ef6284c1f06da2d4bb7 (patch)
tree2297360ee7a9567c5c8c765370c658537efd92a3 /rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
parent9b20df73a600b00b236c85856b5c92cf9b624e82 (diff)
downloadopenvswitch-113f925aa5026ef2b5d57ef6284c1f06da2d4bb7.tar.gz
rhel: Use /run instead of /var/run.
Systemd unit file generates warnings about PID file path since /var/run is a legacy path so just use /run instead of /var/run. /var/run is a symlink of /run starting from RHEL7 (and any other distribution that uses systemd). Reported-at: https://bugzilla.redhat.com/1952081 Signed-off-by: Timothy Redaelli <tredaelli@redhat.com> Acked-by: Flavio Leitner <fbl@sysclose.org> Signed-off-by: Ilya Maximets <i.maximets@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.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
index ff43dae96..6d021618b 100644
--- a/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
+++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service.in
@@ -4,14 +4,14 @@ After=ovsdb-server.service network-pre.target systemd-udev-settle.service
Before=network.target network.service
Requires=ovsdb-server.service
ReloadPropagatedFrom=ovsdb-server.service
-AssertPathIsReadWrite=/var/run/openvswitch/db.sock
+AssertPathIsReadWrite=/run/openvswitch/db.sock
PartOf=openvswitch.service
[Service]
Type=forking
-PIDFile=/var/run/openvswitch/ovs-vswitchd.pid
+PIDFile=/run/openvswitch/ovs-vswitchd.pid
Restart=on-failure
-Environment=XDG_RUNTIME_DIR=/var/run/openvswitch
+Environment=XDG_RUNTIME_DIR=/run/openvswitch
EnvironmentFile=/etc/openvswitch/default.conf
EnvironmentFile=-/etc/sysconfig/openvswitch
EnvironmentFile=-/run/openvswitch.useropts