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
Is there a best practice/tutorial to run ES as a daemon on linux (systemd)?
Solved! Go to Solution.
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 :
[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 :
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 :
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
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 :
[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 :
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 :
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