# Problem with Discover when started as a system-service on Linux

**URL:** <https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290>\
**Category:** Programming Questions\
**Tags:** linux\
**Created:** [December 9, 2024, 1:29pm UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290 "2024-12-09T13:29:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![IngFra](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Post date:** [December 9, 2024, 1:29pm UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290/1 "2024-12-09T13:29:35Z")

</div>

Hi!  
We are trying to start our camera-application as a automatic system-service on Linux (Ubuntu 20.04) at boot-time but the Discover fails to find any cameras!  
Starting the camera-application as a logged in user is working OK…

The system-service is configured to “require” the siGevSvc.service to be started…  
Also tried to debug-log but found nothing strange!  
Any clues?

---

<div class="post-metadata">

**Author:** ![IngFra](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Post date:** [December 10, 2024, 8:13am UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290/2 "2024-12-10T08:13:56Z")

</div>

Seems to work when adding the environment to the service (configuration):  
Environment = CVB=/opt/cvb CVBDATA=/var/opt/cvb CVBCONFIG=/etc/opt/cvb GENICAM\_GENTL64\_PATH=/opt/cvb/drivers/genicam CVGENICAM\_REGISTRY=/var/opt/cvb/Registry

---

<div class="post-metadata">

**Author:** ![Sebastian](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/sebastian/32/1267_2.png) [@Sebastian](https://forum.commonvisionblox.com/u/Sebastian)\
**Post date:** [December 10, 2024, 8:27am UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290/3 "2024-12-10T08:27:30Z")

</div>

Hi @IngFra ,

This is exactly what was missing. Thanks for pointing that out directly here.

---

<div class="post-metadata">

**Author:** ![IngFra](https://avatars.discourse-cdn.com/v4/letter/i/439d5e/32.png) [@IngFra](https://forum.commonvisionblox.com/u/IngFra)\
**Post date:** [December 10, 2024, 11:22am UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290/4 "2024-12-10T11:22:34Z")

</div>

Btw, what does the siGetSvc-service do?

---

<div class="post-metadata">

**Author:** ![Sebastian](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.commonvisionblox.com/sebastian/32/1267_2.png) [@Sebastian](https://forum.commonvisionblox.com/u/Sebastian)\
**Post date:** [December 10, 2024, 11:53am UTC](https://forum.commonvisionblox.com/t/problem-with-discover-when-started-as-a-system-service-on-linux/2290/5 "2024-12-10T11:53:22Z")

</div>

The siGevSvc is used for the GigE Vision communication between the application and the device. Including the detection if the camera or the application is still alive.
