diff options
author | Aaron Conole <aconole@redhat.com> | 2016-07-25 14:03:53 -0400 |
---|---|---|
committer | Russell Bryant <russell@ovn.org> | 2016-08-10 16:17:03 -0400 |
commit | 84ad120834919c3e0945e3e58e0f96c07efa0316 (patch) | |
tree | a12cd02553e123cef5e9094ec50e5eee7cd2410f /rhel/usr_lib_systemd_system_ovs-vswitchd.service | |
parent | 4f6218739ec6ed33b71e5127fe619db13605602d (diff) | |
download | openvswitch-84ad120834919c3e0945e3e58e0f96c07efa0316.tar.gz |
rhel: Improved Systemd Integration
This commit builds upon some of the recent ovs-ctl changes to build a
more integrated systemd setup. A new service (ovs-vswitchd) is
added to track the ovs-vswitchd, and ovsdb-server service is reserved
for the ovsdb-server daemon. The systemd scripts still use ovs-ctl to
actually initialize the daemons.
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Markos Chandras <mchandras@suse.de>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Russell Bryant <russell@ovn.org>
Diffstat (limited to 'rhel/usr_lib_systemd_system_ovs-vswitchd.service')
-rw-r--r-- | rhel/usr_lib_systemd_system_ovs-vswitchd.service | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rhel/usr_lib_systemd_system_ovs-vswitchd.service b/rhel/usr_lib_systemd_system_ovs-vswitchd.service new file mode 100644 index 000000000..d3d020a63 --- /dev/null +++ b/rhel/usr_lib_systemd_system_ovs-vswitchd.service @@ -0,0 +1,18 @@ +[Unit] +Description=Open vSwitch Forwarding Unit +After=ovsdb-server.service +Requires=ovsdb-server.service +ReloadPropagatedFrom=ovsdb-server.service +AssertPathIsReadWrite=/var/run/openvswitch/db.sock +PartOf=openvswitch.service + +[Service] +Type=forking +EnvironmentFile=-/etc/sysconfig/openvswitch +ExecStart=/usr/share/openvswitch/scripts/ovs-ctl \ + --no-ovsdb-server --no-monitor --system-id=random \ + start $OPTIONS +ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop +ExecReload=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server \ + --no-monitor --system-id=random \ + restart $OPTIONS |