FS#62945 - [languagetool] Add systemd service to run server

Attached to Project: Community Packages
Opened by Stanisław Wokulski (fenuks) - Wednesday, 19 June 2019, 19:27 GMT
Last edited by Andrzej Giniewicz (Giniu) - Thursday, 03 October 2019, 18:05 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Andrzej Giniewicz (Giniu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
Various add-ons such as Firefox browser extension[1], or Thunderbird one[2] allow user to configure them to use local instance of LanguageTool. Arch package shell wrapper around LanguageTool jar simplifies running HTTP server, although it would be most convenient to have systemd unit to enable running languagetool server during system start.

Additional info:
* package version(s)
4.5-1
* config and/or log files etc.

Simple, bare-boned service to run server

```
[Unit]
Description=Languagetool HTTP server

[Service]
ExecStart=/usr/bin/languagetool --http --allow-origin "*"
Restart=always

[Install]
WantedBy=default.target
```

[1] https://addons.mozilla.org/en-US/firefox/addon/languagetool/
[2] https://addons.thunderbird.net/en-US/thunderbird/addon/grammar-checker/
This task depends upon

Closed by  Andrzej Giniewicz (Giniu)
Thursday, 03 October 2019, 18:05 GMT
Reason for closing:  Implemented
Additional comments about closing:  I've added simple service file in version 4.7, please test and report a bug if something doesn't work for your use-cases.
Comment by Dennis Værum (Muhaha) - Tuesday, 16 July 2019, 18:53 GMT
I would also really like to see this service added and maybe also make it run as nobody instead of root


```
[Unit]
Description=Languagetool HTTP server

[Service]
User=nobody
ExecStart=/usr/bin/languagetool --http --allow-origin "*"
Restart=always

[Install]
WantedBy=default.target
```

Loading...