/var/run/sphinxsearch/ is not created on boot

Bug #1679304 reported by Carlos
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sphinxsearch (Ubuntu)
New
Undecided
Unassigned

Bug Description

1)
#lsb_release -rd
Description: Ubuntu 16.04.2 LTS
Release: 16.04

2)
# apt-cache policy sphinxsearch
sphinxsearch:
  Installed: 2.2.11-release-0ubuntu13~xenial
  Candidate: 2.2.11-release-0ubuntu13~xenial
  Version table:
 *** 2.2.11-release-0ubuntu13~xenial 500
        500 http://ppa.launchpad.net/builds/sphinxsearch-rel22/ubuntu xenial/main amd64 Packages
        100 /var/lib/dpkg/status
     2.2.9-1build1 500
        500 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages

3)

After a reboot the /var/run/sphinxsearch/ dir is removed and not created again, so sphinx won't work if users don't use the default service.

4)
My understanding is that with the adoption of systemd temporary files and dirs should be created using config files in /etc/tmpfiles.d, /run/tmpfiles.d, or /usr/lib/tmpfiles.d.

I understand that the default service script is creating the dir but in my case I don't use the default service because I have other custom config files, so I start sphinx like this for example:

#/usr/bin/searchd -c /etc/sphinxsearch/dev.sphinx.conf

If I create the config file and reboot it works as expected:

#cat /usr/lib/tmpfiles.d/sphinx.conf
#Type Path Mode UID GID Age Argument
d /var/run/sphinxsearch 0755 sphinxsearch sphinxsearch - -

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.