Page tree

Versions Compared

Key

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

...

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

Code Block
languagebash
titleEnsure 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 above 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