Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The script "startServer.sh" starts the openTMStermTagger server as shown in Server environment - configure from scratch.

Table of Contents

SysVinit init.d startup script

To have openTMStermTagger running on start up, you should start and stop the TermTagger with an init.d script.

...

Code Block
languagebash
sudo chmod 755 /etc/init.d/openTMSTermTagger
sudo update-rc.d openTMSTermTagger defaults
sudo /etc/init.d/openTMSTermTagger start

...

 

SystemD start script

Ensure that the start and stop scripts delivered with translate5 are executable:

 

Code Block
languagebash
sudo chmod u+x /var/www/translate5/application/modules/editor/ThirdParty/XliffTermTagger/startServer.sh

sudo chmod u+x /var/www/translate5/application/modules/editor/ThirdParty/XliffTermTagger/stopServer.sh

 

 

Code Block
languagebash
titleCreate an empty serviced unit:
sudo touch /etc/systemd/system/termtagger.service
sudo chmod 644 /etc/systemd/system/termtagger.service

 

 

Code Block
titleCopy the following content into the above generated termtagger.service file
[Unit]
Description=openTMS TermTagger
After=syslog.target network.target


[Service]
Type=forking
User=www-data
Group=www-data
ExecStart=/var/www/translate5/application/modules/editor/ThirdParty/XliffTermTagger/startServer.sh
ExecStop=/var/www/translate5/application/modules/editor/ThirdParty/XliffTermTagger/stopServer.sh

[Install]
WantedBy=default.target

 

Ensure that the filepaths used in ExecStart and ExecStop are pointing to the right place!

 

 

Code Block
languagebash
titleRun the following commands to start the termtagger:
sudo systemctl daemon-reload
sudo systemctl start termtagger.service