Created
November 16, 2017 17:25
-
-
Save somini/b3421a3c89bd6a6716de1123e39cefad to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=LanguageTool Server Proxy | |
Requires=languagetool-server.service | |
After=languagetool-server.service | |
JoinsNamespaceOf=languagetool-server.service | |
[Service] | |
ExecStart=/lib/systemd/systemd-socket-proxyd 127.0.0.1:8082 | |
PrivateTmp=yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=LanguageTool HTTP Server | |
[Service] | |
ExecStart=/usr/bin/languagetool --http --port 8082 | |
# Wait for the HTTP server to be available | |
ExecStartPost=/usr/bin/sleep 2.5 | |
PrivateTmp=yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=LanguageTool Singleton Socket | |
[Socket] | |
ListenStream=8081 | |
Service=languagetool-server-proxy.service | |
[Install] | |
WantedBy=sockets.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment