From 03515b807dd2c268eda5feef673da383892e9805 Mon Sep 17 00:00:00 2001 From: Helmut Schaa Date: Tue, 16 Sep 2014 11:33:19 +0200 Subject: [PATCH] openvswitch: Run with nice -10 (#1765) This is default if ovs is started through ovs-ctl but we start it directly, hence tell procd to use nice -10 for ovs. Signed-off-by: Helmut Schaa --- net/openvswitch/files/etc/init.d/openvswitch.init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/openvswitch/files/etc/init.d/openvswitch.init b/net/openvswitch/files/etc/init.d/openvswitch.init index 6b5f45821..ffe879a05 100644 --- a/net/openvswitch/files/etc/init.d/openvswitch.init +++ b/net/openvswitch/files/etc/init.d/openvswitch.init @@ -21,6 +21,8 @@ start_service() { procd_append_param respawn 3600 procd_append_param respawn 5 procd_append_param respawn -1 + procd_set_param nice + procd_append_param nice -10 procd_close_instance # ovs-vswitchd @@ -31,6 +33,8 @@ start_service() { procd_append_param respawn 3600 procd_append_param respawn 5 procd_append_param respawn -1 + procd_set_param nice + procd_append_param nice -10 procd_close_instance }