...
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 | ||
---|---|---|
| ||
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 | ||
---|---|---|
| ||
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 | ||||
---|---|---|---|---|
| ||||
sudo touch /etc/systemd/system/termtagger.service
sudo chmod 644 /etc/systemd/system/termtagger.service |
Code Block | ||
---|---|---|
| ||
[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 | ||||
---|---|---|---|---|
| ||||
sudo systemctl daemon-reload
sudo systemctl start termtagger.service |