# Orthanc as a service stops when a python script is provided

**URL:** https://discourse.orthanc-server.org/t/orthanc-as-a-service-stops-when-a-python-script-is-provided/2748
**Category:** Google Groups archive
**Created:** [December 20, 2021, 4:25pm UTC](https://discourse.orthanc-server.org/t/orthanc-as-a-service-stops-when-a-python-script-is-provided/2748 "2021-12-20T16:25:48Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Alain\_Mazy1](https://discourse.orthanc-server.org/letter_avatar_proxy/v4/letter/a/839c29/32.png) [@Alain\_Mazy1](https://discourse.orthanc-server.org/u/Alain_Mazy1)
#### Post date: [December 21, 2021, 8:56am UTC](https://discourse.orthanc-server.org/t/orthanc-as-a-service-stops-when-a-python-script-is-provided/2748/4 "2021-12-21T08:56:41Z")

</div>

Hi Elia,

I have basically the same setup as yours.

I would recommend you to use Process Monitor: [https://docs.microsoft.com/en-us/sysinternals/downloads/procmon](https://docs.microsoft.com/en-us/sysinternals/downloads/procmon), add a filter for Orthanc.exe:  
 ![image.png](https://discourse.orthanc-server.org/uploads/default/original/2X/d/d10142e18ae71a692f0dd4bdfd1ca405b0411390.png)

Then, restart your service, check the time of failure in the logs and check the Process Monitor logs around the same timestamp. Hopefully, you should get useful info from there.

HTH,

Alain.

---

_[View the full topic](https://discourse.orthanc-server.org/t/orthanc-as-a-service-stops-when-a-python-script-is-provided/2748)._
