X-Git-Url: https://review.fuel-infra.org/gitweb?p=openstack-build%2Fneutron-build.git;a=blobdiff_plain;f=rpm%2FSOURCES%2Fneutron-openvswitch-agent.init;fp=rpm%2FSOURCES%2Fneutron-openvswitch-agent.init;h=14e53a9cb4b233772c9a2ef930ac7daba4ac2b03;hp=ace2f9bb59298d241b5f372327fffcad4c032f1f;hb=3dea7869947d652cb9d069c3b9fcbd3f4c32ec3b;hpb=8127ea1ce21fe5cfdc9a394af5e8f03620884c18 diff --git a/rpm/SOURCES/neutron-openvswitch-agent.init b/rpm/SOURCES/neutron-openvswitch-agent.init index ace2f9bb5..14e53a9cb 100644 --- a/rpm/SOURCES/neutron-openvswitch-agent.init +++ b/rpm/SOURCES/neutron-openvswitch-agent.init @@ -13,11 +13,11 @@ plugin=openvswitch-agent prog=$proj-$plugin exec="/usr/bin/$prog" configs=( + "/usr/share/$proj/$proj-dist.conf" \ "/etc/$proj/$proj.conf" \ "/etc/$proj/plugins/openvswitch/ovs_neutron_plugin.ini" \ ) pidfile="/var/run/$proj/$prog.pid" -logfile="/var/log/$proj/ovs-agent.log" [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog @@ -29,7 +29,7 @@ start() { [ -f $config ] || exit 6 done echo -n $"Starting $prog: " - daemon --user neutron --pidfile $pidfile "$exec --log-file $logfile ${configs[@]/#/--config-file } &>/dev/null & echo \$! > $pidfile" + daemon --user neutron --pidfile $pidfile "$exec --log-file /var/log/$proj/$plugin.log ${configs[@]/#/--config-file } &>/dev/null & echo \$! > $pidfile" retval=$? echo [ $retval -eq 0 ] && touch $lockfile