On Tue, 4 Jul 2023 12:55:05 +0200 Roland Rosenfeld <rol...@debian.org> wrote: > tags 1039380 + patch > thanks > > In addition to the missing sphinxsearch.service unit, I noted another > problem with /etc/init.d/sphinxsearch: stopping (or restarting) the > service always takes 30 seconds on my system, which is quite annoying > if you want to quickly restart the service or reboot the server and > you have always to ways until the 30 seconds timeout occurs. > > So I decided to create a little sphinxsearch.service, which does the > job for my needs. In contrast to /etc/init.d/sphinxsearch it does not > check for /etc/default/sphinxsearch (START=yes), but I think that > systemctl enable|disable sphinxsearch > is a better solution for this. > > It also does not check whether /etc/sphinxsearch/sphinx.conf exists, > but I'm not sure where this is needed for. > > Maybe this could be helpful for someone else.
Instead of those ExecStartPre=, you can simply use RuntimeDirectoryPreserve=yes and RuntimeDirectory=sphinxsearch -- Kind regards, Luca Boccassi
signature.asc
Description: This is a digitally signed message part