Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: vdsm: /etc/tmpfiles.d/vdsm.conf
......................................................................

vdsm: /etc/tmpfiles.d/vdsm.conf

systemd-tmpfiles uses the configuration files from /etc/tmpfiles.d to describe
the creation, cleaning and removal of volatile and temporary files and
directories.

Change-Id: Iea9ec4b7ba1e362c1141c4e0cb734d2b1520dbfd
Signed-off-by: Douglas Schilling Landgraf <[email protected]>
---
M .gitignore
M vdsm.spec.in
M vdsm/Makefile.am
A vdsm/vdsm-tmpfiles.d.conf.in
4 files changed, 8 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/07/15707/1

diff --git a/.gitignore b/.gitignore
index 01e8a96..195f95c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,7 @@
 vdsm/vdsm-restore-net-config.init
 vdsm/vdsm-sosplugin.py
 vdsm/vdsm-store-net-config
+vdsm/vdsm-tmpfiles.d.conf
 vdsm/vdsm.rwtab
 vdsm/vdsmd.8
 vdsm/vdsmd.init
diff --git a/vdsm.spec.in b/vdsm.spec.in
index b0e3b87..e8da36d 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -543,6 +543,8 @@
                  %{buildroot}%{_unitdir}/vdsm-reg.service
 install -Dm 0644 vdsm/vdsm-modules-load.d.conf \
                  %{buildroot}%{_sysconfdir}/modules-load.d/vdsm.conf
+install -Dm 0644 vdsm/vdsm-tmpfiles.d.conf \
+                 %{buildroot}%{_sysconfdir}/tmpfiles.d/vdsm.conf
 %else
 # Install the SysV init scripts
 install -Dm 0755 vdsm/vdsmd.init %{buildroot}%{_initrddir}/vdsmd
@@ -798,6 +800,7 @@
 %config(noreplace) %{_sysconfdir}/sysctl.d/vdsm
 %if 0%{?with_systemd}
 %config(noreplace) %{_sysconfdir}/modules-load.d/vdsm.conf
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/vdsm.conf
 %endif
 %{_sysconfdir}/sudoers.d/50_vdsm
 %{_sysconfdir}/cron.hourly/vdsm-logrotate
diff --git a/vdsm/Makefile.am b/vdsm/Makefile.am
index c528b41..9491e06 100644
--- a/vdsm/Makefile.am
+++ b/vdsm/Makefile.am
@@ -78,6 +78,7 @@
        vdsm-restore-net-config.init \
        vdsm.rwtab \
        vdsmd.init \
+       vdsm-tmpfiles.d.conf \
        supervdsmd.init \
        supervdsmd.service \
        $(NULL)
@@ -128,6 +129,7 @@
        vdsm-restore-net-config.service \
        vdsm-store-net-config.in \
        vdsm-sysctl.conf \
+       vdsm-tmpfiles.d.conf.in \
        vdsm.rwtab.in \
        vdsmd.8.in \
        vdsmd.init.in \
diff --git a/vdsm/vdsm-tmpfiles.d.conf.in b/vdsm/vdsm-tmpfiles.d.conf.in
new file mode 100644
index 0000000..2d6658f
--- /dev/null
+++ b/vdsm/vdsm-tmpfiles.d.conf.in
@@ -0,0 +1,2 @@
+d /var/run/vdsm 755 @VDSMUSER@ @VDSMGROUP@
+d /run/vdsm 755 @VDSMUSER@ @VDSMGROUP@


-- 
To view, visit http://gerrit.ovirt.org/15707
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iea9ec4b7ba1e362c1141c4e0cb734d2b1520dbfd
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to