+++ /dev/null
-[Unit]
-Description=Setup for Buxton2 service
-
-[Service]
-Type=oneshot
-ExecStart=/bin/sh -c 'mkdir -p /run/buxton2 && chmod 700 /run/buxton2 && chown buxton:buxton /run/buxton2'
-RemainAfterExit=yes
-
-[Install]
-WantedBy=multi-user.target
[Unit]
Description=Buxton2 Configuration Service
-Requires=buxton2-pre.service
-After=buxton2-pre.service
+After=systemd-tmpfiles-setup.service
[Service]
Environment=BUXTON_CYNARA_PERMISSIVE_MODE=1
Source1: %{name}.conf
Source2: %{name}.service
Source3: %{name}.socket
-Source4: %{name}-pre.service
+Source4: %{name}.tmpfiles.conf
Source1001: %{name}.manifest
BuildRequires: cmake
BuildRequires: gdbm-devel
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.socket
-install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}-pre.service
+install -m 755 -d %{buildroot}%{_tmpfilesdir}
+install -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
# enable socket activation
install -m 755 -d %{buildroot}%{_unitdir}/sockets.target.wants
%{_libdir}/libbuxton2.so.*
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
-%{_unitdir}/%{name}-pre.service
+%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/sockets.target.wants/%{name}.socket
%attr(0700,buxton,buxton) %dir %{_localstatedir}/lib/%{name}