...
Code Block |
---|
|
sudo chmod 755 /etc/init.d/openTMSTermTagger
sudo update-rc.d openTMSTermTagger defaults
sudo /etc/init.d/openTMSTermTagger start |
SystemD start script
Code Block |
---|
language | bash |
---|
title | Ensure that the start and stop scripts delivered with translate5 are executable: |
---|
|
...
Code Block |
---|
|
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 |
---|
language | bash |
---|
title | Create an empty serviced unit: |
---|
|
sudo touch /etc/systemd/system/termtagger.service
sudo chmod 644 /etc/systemd/system/termtagger.service |
...
Code Block |
---|
title | Copy 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 |
---|
language | bash |
---|
title | Run the following commands to start the termtagger: |
---|
|
sudo systemctl daemon-reload
sudo systemctl start termtagger.service |