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.

Greetings
Roland
[Unit]
Description=Sphinxsearch network daemon
Documentation=man:searchd(1)
After=network-online.target

[Service]
Type=forking
ExecStartPre=+/bin/mkdir -p /run/sphinxsearch
ExecStartPre=+/bin/chown -R  sphinxsearch:sphinxsearch /run/sphinxsearch
ExecStart=/usr/bin/searchd
User=sphinxsearch

[Install]
WantedBy=multi-user.target

Reply via email to