switch svnserve pidfile to use /run, use /usr/lib/tmpfiles.d (#840195)
Resolves: rhbz#840195
This commit is contained in:
parent
8a2548890d
commit
fdfc8e1c34
@ -26,7 +26,7 @@
|
||||
Summary: A Modern Concurrent Version Control System
|
||||
Name: subversion
|
||||
Version: 1.7.5
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
License: ASL 2.0
|
||||
Group: Development/Tools
|
||||
URL: http://subversion.apache.org/
|
||||
@ -307,14 +307,14 @@ install -Dpm 644 tools/client-side/bash_completion \
|
||||
|
||||
# Install svnserve bits
|
||||
mkdir -p %{buildroot}%{_unitdir} \
|
||||
%{buildroot}%{_localstatedir}/run/svnserve \
|
||||
%{buildroot}%{_sysconfdir}/tmpfiles.d \
|
||||
%{buildroot}/run/svnserve \
|
||||
%{buildroot}%{_prefix}/lib/tmpfiles.d \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig
|
||||
|
||||
install -p -m 644 $RPM_SOURCE_DIR/svnserve.service \
|
||||
%{buildroot}%{_unitdir}/svnserve.service
|
||||
install -p -m 644 $RPM_SOURCE_DIR/svnserve.tmpfiles \
|
||||
%{buildroot}%{_sysconfdir}/tmpfiles.d/svnserve.conf
|
||||
%{buildroot}%{_prefix}/lib/tmpfiles.d/svnserve.conf
|
||||
install -p -m 644 $RPM_SOURCE_DIR/svnserve.sysconf \
|
||||
%{buildroot}%{_sysconfdir}/sysconfig/svnserve
|
||||
|
||||
@ -407,8 +407,8 @@ fi
|
||||
%dir %{_sysconfdir}/subversion
|
||||
%exclude %{_mandir}/man*/*::*
|
||||
%{_unitdir}/*.service
|
||||
%{_localstatedir}/run/svnserve
|
||||
%{_sysconfdir}/tmpfiles.d/svnserve.conf
|
||||
%dir /run/svnserve
|
||||
%{_prefix}/lib/tmpfiles.d/svnserve.conf
|
||||
|
||||
%files tools -f tools.files
|
||||
%defattr(-,root,root)
|
||||
@ -477,6 +477,9 @@ fi
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon Jul 16 2012 Joe Orton <jorton@redhat.com> - 1.7.5-2
|
||||
- switch svnserve pidfile to use /run, use /usr/lib/tmpfiles.d (#840195)
|
||||
|
||||
* Tue May 22 2012 Joe Orton <jorton@redhat.com> - 1.7.5-1
|
||||
- update to 1.7.5
|
||||
|
||||
|
@ -5,7 +5,7 @@ After=syslog.target network.target
|
||||
[Service]
|
||||
Type=forking
|
||||
EnvironmentFile=/etc/sysconfig/svnserve
|
||||
ExecStart=/usr/bin/svnserve --daemon --pid-file=/var/run/svnserve/svnserve.pid $OPTIONS
|
||||
ExecStart=/usr/bin/svnserve --daemon --pid-file=/run/svnserve/svnserve.pid $OPTIONS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
@ -1 +1 @@
|
||||
D /var/run/svnserve 0700 root root -
|
||||
D /run/svnserve 0700 root root -
|
||||
|
Loading…
Reference in New Issue
Block a user