summaryrefslogtreecommitdiff
path: root/rhel
diff options
context:
space:
mode:
Diffstat (limited to 'rhel')
-rw-r--r--rhel/usr_lib_systemd_system_ovn-controller-vtep.service12
1 files changed, 6 insertions, 6 deletions
diff --git a/rhel/usr_lib_systemd_system_ovn-controller-vtep.service b/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
index d6bfef1d4..5f69c57bb 100644
--- a/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
+++ b/rhel/usr_lib_systemd_system_ovn-controller-vtep.service
@@ -33,16 +33,16 @@ Requires=openvswitch.service
After=openvswitch.service
[Service]
-Type=simple
+Type=forking
+PIDFile=/var/run/openvswitch/ovn-controller-vtep.pid
Restart=on-failure
-Environment=OVS_RUNDIR=%t/openvswitch
Environment=OVN_DB=unix:%t/openvswitch/ovnsb_db.sock
Environment=VTEP_DB=unix:%t/openvswitch/db.sock
EnvironmentFile=-/etc/sysconfig/ovn-controller-vtep
-ExecStart=/usr/bin/ovn-controller-vtep -vconsole:emer -vsyslog:err -vfile:info \
- --log-file=/var/log/openvswitch/ovn-controller-vtep.log \
- --no-chdir --pidfile=${OVS_RUNDIR}/ovn-controller-vtep.pid \
- --ovnsb-db=${OVN_DB} --vtep-db=${VTEP_DB}
+ExecStart=/usr/share/openvswitch/scripts/ovn-ctl \
+ --db-sb-sock=${OVN_DB} --db-sock=${VTEP_DB} \
+ start_controller_vtep
+ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller_vtep
[Install]
WantedBy=multi-user.target