On Thu, 15 Oct 2015, Robie Basak <robie.ba...@ubuntu.com> wrote: > > For /var/run directories if you add them to a systemd-tmpfiles > > configuration they will get the right context. Add a file named > > /usr/lib/tmpfiles.d/mysql- server.conf with the following contents: > > D /var/run/mysqld 0755 mysql root > > This sounds like a better route to me. > > Given that we're using systemd, should we adjust your patch to do what > you described above instead before applying? That is, ship > /var/lib/mysql and /var/log/mysql using dh_installdirs (if I understand > you correctly)? The systemd service already uses RuntimeDirectory so > will this cause the right thing to happen, or do we still need a > /usr/lib/tmpfiles.d entry?
Yes using dh_installdirs should do it for everything other than /var/run. If the RuntimeDirectory option causes systemd to create the directory then it should be created correctly. -- My Main Blog http://etbe.coker.com.au/ My Documents Blog http://doc.coker.com.au/