cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Vuforia Experience Service on Linux - Best practive to run it as a daemon

pjahn
15-Moonstone

Vuforia Experience Service on Linux - Best practive to run it as a daemon

Is there a best practice/tutorial to run ES as a daemon on linux (systemd)?

2 REPLIES 2
sdidier
17-Peridot
(To:pjahn)

Hello pjahn,

 

Last time I did it for Vuforia Experience Service in Centos, I have follow up same steps as any binary or script shell.

 

Steps :

  1. In /etc/systemd/system folder, create the ves.service file
  2. In a text editor, copy and paste that :
[Unit]
Description=Vuforia Experience Service
After=network.target After=systemd-user-sessions.service After=network-online.target

[Service]
ExecStart=/opt/ptc/studio-es/start-es.sh > thingserver.log 2>&1
ExecStop=/opt/ptc/studio-es/stop-es.sh
Restart=always

[Install]
WantedBy=multi-user.target

 

     3. Make script start-es.sh executable.

        In a terminal, run this command : chmod u+x /opt/ptc/studio-es/start-es.sh

     4. In a terminal, run this command to start it when booting : sudo systemctl enable ves

 

As we can see the redirection to capture log file is the same as explained in this web page in help center :

https://support.ptc.com/help/vuforia/es_install/en/#page/ES_Install_Help_Center%2FThingServerInstall...

 

The default installation folder /opt/ptc/studio-es is used in this service.

Please update it with the one used in your installation.

More details here :

https://support.ptc.com/help/vuforia/es_install/en/#page/ES_Install_Help_Center%2FThingServerInstall...

 

Also, if the installation is using postgres, I would recommand to add this in ves.service :

After=postgres.service

 

Replace postgres by the name of the service who starts postgres database in your environment.

 

Best regards,

Samuel

pjahn
15-Moonstone
(To:sdidier)

Ok. Way better than to install "forever" module. 🙂
Announcements

Topics available:
AR/VR for Data Optimization AR/VR for Security and Control AR/VR for Inspection