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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

pjahn
16-Pearl

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)?

ACCEPTED SOLUTION

Accepted Solutions
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_Logging.html%23

 

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_ESInstall_Linux.html%23

 

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

View solution in original post

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_Logging.html%23

 

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_ESInstall_Linux.html%23

 

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
16-Pearl
(To:sdidier)

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

Top Tags