diff options
author | Jaime Caamaño Ruiz <jcaamano@suse.com> | 2019-05-08 13:53:46 +0200 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-06-09 17:25:43 -0700 |
commit | dd9b0ed538997b0723addf91522ebc13adab556a (patch) | |
tree | 10039fb379678f39cf2378bd4d44e2d1e6f7e6e0 /rhel | |
parent | ea8519fcc764532ab7dfa3a86d683365eff6451d (diff) | |
download | openvswitch-dd9b0ed538997b0723addf91522ebc13adab556a.tar.gz |
rhel: start ovn-controller-vtep with ovn-ctl
Use ovn-ctl to start ovn-controller-vtep from the corresponding systemd
unit file.
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@suse.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'rhel')
-rw-r--r-- | rhel/usr_lib_systemd_system_ovn-controller-vtep.service | 12 |
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 |