# tell pvserver not to quit after the client disconnects

**URL:** https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996
**Category:** ParaView Support
**Created:** [April 8, 2020, 9:27am UTC](https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996 "2020-04-08T09:27:40Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![hpcnpatel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/91b2a8/32.png) [@hpcnpatel](https://discourse.paraview.org/u/hpcnpatel)
#### Post date: [April 8, 2020, 9:27am UTC](https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996/1 "2020-04-08T09:27:40Z")

</div>

Is there a way to tell pvserver not to quit after the client disconnects/client stops for whatever reason?

Why I need such a feature?

There happens a situation where the client disconnects due to an error. As a result, pvserver also quits, which in turn terminates the batch job (on a cluster) that is running the pvserver. I have to wait for hours to get resources and now because of client-side error, I will have to wait for hours to get the resources from the cluster. If I can prevent terminating pvserver, I can open a client ParaView and connect the server-side and do other visualization with the resources I have.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 8, 2020, 9:31am UTC](https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996/2 "2020-04-08T09:31:08Z")

</div>

`--multi-clients` should do the trick.

In any case, a more robust approach is to run a script (which will handle failure gracefully) instead of running pvserver.

---

<div class="post-metadata">

### Author: ![hpcnpatel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/h/91b2a8/32.png) [@hpcnpatel](https://discourse.paraview.org/u/hpcnpatel)
#### Post date: [April 8, 2020, 10:01am UTC](https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996/3 "2020-04-08T10:01:32Z")

</div>

No, --multi-clients does not work. I will try to run a script.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [April 9, 2020, 7:06am UTC](https://discourse.paraview.org/t/tell-pvserver-not-to-quit-after-the-client-disconnects/3996/4 "2020-04-09T07:06:32Z")

</div>

Right, with multi-client you would need another client to stay connected to it in order to keep it alive.

+1 for the script approach.
