Murali Mopuru
Murali Mopuru

Reputation: 6580

fabric process getting break after kill linux command execution

I've set of run() statements in my fabric file to stop/exit my app servers. When i run fab file, fabric process getting break after the following statement. Can someone tell me how to resolve it?

run("kill $(ps x | grep memcached | awk '{print $1}')", pty=False)

Upvotes: 2

Views: 766

Answers (1)

Morgan
Morgan

Reputation: 4131

use pkill instead and call it a day

Upvotes: 1

Related Questions