Skip to content

Commit

Permalink
rhel-systemd: Document systemd behavior
Browse files Browse the repository at this point in the history
This is a follow up patch to document the systemd behavior including
the change introduced by the "rhel-systemd: Restart openvswitch
service if a daemon crashes", still under review.

Signed-off-by: Eelco Chaudron <[email protected]>
Acked-by: Flavio Leitner <[email protected]>
Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
chaudron authored and russellb committed Feb 27, 2017
1 parent c19bf36 commit 090cc60
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions rhel/README.RHEL.rst
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,38 @@ DPDK NIC port:
OVS_OPTIONS="bond_mode=active-backup"
HOTPLUG=no


Red Hat systemd integration
---------------------------

The RPM packages for Open vSwitch provide support for systemd integration. It's
recommended to use the openvswitch.service to start and stop the Open vSwitch
daemons. The below table shows systemd's behavior:

=============================== ============== ============== ============== =============== ===============
- Process Status systemctk <> status
------------------------------- ----------------------------- ----------------------------------------------
Action ovs-vswitch ovsdb-server openvswitch ovs-vswitchd ovsdb-server
=============================== ============== ============== ============== =============== ===============
systemctl start openvswitch* started started active, exited active, running active, running
crash of vswitchd crash, started re-started active, exited active, running active, running
crash of ovsdb re-started crash, started active, exited active, running active, running
systemctl restart openvswitch re-started re-started active, exited active, running active, running
systemctl restart ovs-vswitchd re-started re-started active, exited active, running active, running
systemctl restart ovsdb-server re-started re-started active, exited active, running active, running
systemctl stop openvswitch stopped stopped inactive, dead inactive, dead inactive, dead
systemctl stop ovs-vswitchd stopped stopped inactive, dead inactive, dead inactive, dead
systemctl stop ovsdb-server stopped stopped inactive, dead inactive, dead inactive, dead
systemctl start ovs-vswitchd* started started inactive, dead active, running active, running
systemctl start ovsdb-server* not started started inactive, dead inactive, dead active, running
=============================== ============== ============== ============== =============== ===============


\* These commands where executed when no Open vSwitch related processes where
running. All other commands where executed when Open vSwitch was successfully
running.


Reporting Bugs
--------------

Expand Down

0 comments on commit 090cc60

Please sign in to comment.