I am currently trying to make a service for LanguageTool (for learning runit)
But then I discovered LanguageTool doesn't use a typical format, but a start /stop system:
https://github.com/languagetool-org/languagetool/blob/master/languagetool-rpm-package/src/main/resources/templates/languagetool.service.template
What's the runit equivalent of ExecStart, ExecStop and ExecReload ?
ExecStart → contents of the run file. Remember that the script must ultimately exec into the service executable, or pause if you can't get it to stay in the foreground.
ExecStop → contents of the control/t file.
ExecReload → contents of the control/h file.
This seems to be the kind of systemd service that won't translate well into runit, though, since it's basically "hey, use this other program to manage the service rather than managing it yourself". Runit works best when it has direct acess to the service process.
If "ltserver start" stays in the foreground, it should work. You could ignore other parts of this like the reload, pidfile, and so on. If you need ExecStop, you could use a finish file however.
just found out
exec chpst -u languagetool languagetool --http --allow-origin "*"
works just fine