[ 
https://issues.apache.org/jira/browse/SOLR-14410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17725737#comment-17725737
 ] 

Shawn Heisey commented on SOLR-14410:
-------------------------------------

Works on CentOS 7 and AlmaLinux 8.  I think it will also work on Ubuntu 20 and 
22, and quite possibly even older versions.  And it is likely to work on other 
Debian derivatives.  I'm not sure when Debian/Ubuntu switched to systemd, but I 
think it was quite a while ago.

Saw that the service is configured to restart by default.  I think this is a 
bad default.  It should be something that's not difficult to enable, but should 
always require explicit admin intervention.  If there's any way to make it so 
the service looks at the include script to determine that, I think that's the 
best way.

I would like to make ALL the defaults currently in the service file 
configurable by the include script (and eventually the platform-independent 
config file).  Basically create a situation where there is rarely any reason 
for an end user to modify the service file.  If we discourage manual edits of 
that file and make everything configurable, a lot of support headaches 
evaporate.

I'm on the fence about whether we can switch fully to systemd.  The two systems 
above where the current installer failed do NOT use systemd ... but Solr STILL 
won't install on them even now.  I suspect that will be the case for almost any 
OS that is not using systemd, but I would like a little more data.  It may not 
be a bad idea for us to only support out-of-the-box installs on systemd.

 

> 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
>         Attachments: image-2023-05-24-03-02-50-824.png, 
> image-2023-05-24-03-14-14-991.png, solr.service
>
>          Time Spent: 4h
>  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: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to