mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-12 22:23:49 +01:00
forward-port: switch runuser to _tor, and make the logrotate script better
svn:r3180
This commit is contained in:
parent
0e9f77b9d8
commit
da741a978b
19
tor.spec.in
19
tor.spec.in
@ -6,13 +6,13 @@
|
|||||||
# This should be incremented whenever the spec file changes, but
|
# This should be incremented whenever the spec file changes, but
|
||||||
# can drop back to zero at a new Tor version
|
# can drop back to zero at a new Tor version
|
||||||
|
|
||||||
%define specver 1
|
%define specver 2
|
||||||
|
|
||||||
## Things users may want to change
|
## Things users may want to change
|
||||||
#
|
#
|
||||||
# User (and group) name under which the Tor daemon runs
|
# User (and group) name under which the Tor daemon runs
|
||||||
|
|
||||||
%define runuser tordmn
|
%define runuser _tor
|
||||||
|
|
||||||
## Version song and dance
|
## Version song and dance
|
||||||
#
|
#
|
||||||
@ -166,10 +166,17 @@ q
|
|||||||
# but hey...
|
# but hey...
|
||||||
%__mkdir_p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
%__mkdir_p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
|
||||||
%__cat > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} << /EOF/
|
%__cat > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} << /EOF/
|
||||||
%{_localstatedir}/log/%{name} {
|
%{_localstatedir}/log/%{name}/*log {
|
||||||
missingok
|
daily
|
||||||
notifempty
|
rotate 5
|
||||||
sharedscripts
|
compress
|
||||||
|
delaycompress
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
sharedscripts
|
||||||
|
postrotate
|
||||||
|
/etc/rc.d/init.d/tor reload > /dev/null
|
||||||
|
endscript
|
||||||
}
|
}
|
||||||
/EOF/
|
/EOF/
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user