def _operation(self, action): with settings(host_string=self.int_ip): run('set -m; /app/{}/backend/bin/startup.sh {} && sleep 0.2'.format(self.name, action), warn_only=True)