i have the same problem with all init.d script : swift-container swift-account swift-object swift-proxy I check actual service with ps aux | grep swift starting with a clean system (ps gives nothing) I can start a service with /etc/init.d/swift-proxy start then ps shows the process as expected i can stop /etc/init.d/swift-proxy start and it says ok in green But actually, the processes still show with ps (there are three) Killing the first one with kill <pid> is enough to ends it, no even need for -9
I know why it fails and i know how to fix it. I had to change the PIDFILE in init.d scripts. Maybe those have changed in openstack icehouse ? Anyway, here's what i got now and it works pretty well. verdi ~ # grep ^PIDF /etc/init.d/swift-* /etc/init.d/swift-account:PIDFILE=/var/run/swift/account-server.pid /etc/init.d/swift-container:PIDFILE=/var/run/swift/container-server.pid /etc/init.d/swift-object:PIDFILE=/var/run/swift/object-server.pid /etc/init.d/swift-proxy:PIDFILE=/var/run/swift/proxy-server.pid
I can confirm the bug AND that my fix still works as of today, using sys-cluster/swift-2.1.0 from the main portage tree. The init.d scripts are plain broken, and it prevents normal use of swift in gentoo. I've found the problem, explained why and proposed a solution. All of this several months ago. Why isn't it fixed since then ??? Do you kinda disagree with what i've said ?
No, don't necessarily disagree, but getting swift init scripts happy will take setting it up, which takes time :(
Might be. But there's a bug here, i provide a fix, an explanation. The whole thing seems rather trivial, has been there for months and is still not applied.... !?
Please fix the init files !
You have init files I can use? Not using swift myself makes this harder :(
actually, I'm blind, your fix is applied (changed /var/run to /run though).
You right for /run indeed. Thanks for applying the fix.