How to create service for programs using <program> start/stop 28 June 2021, 23:11:16 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.templateWhat's the runit equivalent of ExecStart, ExecStop and ExecReload ?
Re: How to create service for programs using <program> start/stop Reply #1 – 29 June 2021, 02:25:36 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. Last Edit: 29 June 2021, 02:36:37 by capezotte
Re: How to create service for programs using <program> start/stop Reply #2 – 29 June 2021, 04:06:39 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.
Re: How to create service for programs using <program> start/stop Reply #3 – 29 June 2021, 17:54:30 just found out Code: [Select]exec chpst -u languagetool languagetool --http --allow-origin "*" works just fine