Versions Compared

Key

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

You may have a preference to use WebSpellChecker as a service on Linux. By default, it is not available as a service, however, you can create it.

There are plenty of instructions available on the Internet that will explain how to create a service. Here is the one of them available on Medium that describes how to create a Linux service.

1. Create a text file, e.g. webspellchecker.service. In the example below you need to set a name for User and update paths to the installation directory of WebSpellChecker.

Code Block
languagetext
themeEmacs
titlewebspellchecker.service
[Unit]
Description=WebSpellChecker spelling and grammar checking server
After=network.target
StartLimitIntervalSec=0

[Service]
User=user_name
Environment="LD_LIBRARY_PATH=/homeopt/spellcheckWSC/svc/appAppServer/lib"
Environment="TZ=:/etc/localtime"
WorkingDirectory=/homeopt/spellcheckWSC/svc/appAppServer
ExecStart=/homeopt/spellcheckWSC/svc/appAppServer/AppServerX
Restart=on-failure

[Install]
WantedBy=multi-user.target

2. Once the file is created, you need to copy it into /etc/systemd/system directory.

3. In order to start or stop the service, use the next commands below.

Start the service as follows:

Code Block
languagebash
themeEmacs
service webspellchecker start

Stop the service as follows:

Code Block
languagebash
themeEmacs
service webspellchecker stop


Info

You have an option to start the service on boot. To do so, use the following command:

Code Block
languagebash
themeEmacs
systemctl enable webspellchecker