rhel: Use ovn-ctl to ovn-controller service
[cascardo/ovs.git] / rhel / usr_lib_systemd_system_ovn-controller.service
1 #
2 # You may override the following variables to customize ovn-controller behavior:
3 #
4 #   OVS_DB - Set this variable to the location of the ovsdb server that is
5 #            serving the Open_vSwitch database for the local ovs-vswitchd.
6 #            See the manpage for ovn-controller for more details on the
7 #            format for the db location.
8 #
9
10 [Unit]
11 Description=OVN controller daemon
12 After=syslog.target
13 Requires=openvswitch.service
14 After=openvswitch.service
15
16 [Service]
17 Type=oneshot
18 RemainAfterExit=yes
19 ExecStart=/usr/share/openvswitch/scripts/ovn-ctl start_controller
20 ExecStop=/usr/share/openvswitch/scripts/ovn-ctl stop_controller