[
https://issues.apache.org/jira/browse/SOLR-14410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17834248#comment-17834248
]
Stefan Neufeind commented on SOLR-14410:
----------------------------------------
Checking out the source of the service-definition I wonder if we should still
use the forking-mode like the init.d-scripts did:
[https://github.com/apache/solr/blob/main/solr/bin/systemd/solr.service]
Or probably start in foreground-mode so systemd keeps an active connection to
the service, doesn't need a PIDFile= to check the service-state and so systemd
also could take care of logging etc.? Imho interesting way to start in
foreground, implemented here:
[https://gist.github.com/alanorth/2c3f0a0d7a7036bd986cad5ba371f374]
What do you think? Pros/Cons of starting in foreground?
> Switch from SysV init script to systemd service definition
> ----------------------------------------------------------
>
> Key: SOLR-14410
> URL: https://issues.apache.org/jira/browse/SOLR-14410
> Project: Solr
> Issue Type: Improvement
> Reporter: Marius Ghita
> Assignee: Jan Høydahl
> Priority: Major
> Fix For: main (10.0)
>
> Attachments: image-2023-05-24-03-02-50-824.png,
> image-2023-05-24-03-14-14-991.png, solr.service
>
> Time Spent: 6.5h
> Remaining Estimate: 0h
>
> The proposed change will incorporate the attached service definition file in
> the solr installation script.
>
> More information on the mailinglist
> [http://mail-archives.apache.org/mod_mbox/lucene-dev/202004.mbox/%3ccafszzzxs+zh1mrscsjftyxn0kod_+6fjobxd9zhxt66fhaz...@mail.gmail.com%3e]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]