Skip to content
Snippets Groups Projects
Commit ae53f09f authored by Markus Koschany's avatar Markus Koschany
Browse files

Add solr-permissions.conf and override tomcat9 permissions to allow solr-tomcat

read-write access to /var/lib/solr.

Closes: #919638
parent f142790f
No related branches found
No related tags found
No related merge requests found
[Service]
ReadWritePaths=/var/lib/solr/
debian/solr-tomcat.xml /etc/solr/
debian/tomcat.policy /etc/solr/
debian/solr-permissions.conf /etc/systemd/system/tomcat9.d/
  • Bascht @bascht-guest ·

    Sorry for commenting inline over here, but bugs.debian.org would just refuse my email:

    I think the systemd overrides need to go into a folder with the name ..d – so

    /etc/systemd/system/tomcat9.d

    should be

    /etc/systemd/system/tomcat9.service.d

    I can confirm that after renaming the folder, issuing "systemctl daemon-reload" and restarting tomcat9, solr is able to write to /var/lib/solr again.

    Best, Bascht

  • Owner

    Looking at the other overrides in Debian it seems you are right:

    ~$ apt-file find /etc/systemd/system/ | grep '\.d'
    lava-dispatcher: /etc/systemd/system/systemd-udevd.service.d/override.conf
    mariadb-plugin-tokudb: /etc/systemd/system/mariadb.service.d/tokudb.conf
    solr-tomcat: /etc/systemd/system/tomcat9.d/solr-permissions.conf

    Could you file a new bug to get this fixed?

  • Author Owner

    Thanks for noticing us. I will take care of it later.

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment