aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-12-19 03:06:33 +0000
committerRoger Dingledine <arma@torproject.org>2004-12-19 03:06:33 +0000
commitda741a978bdb5a0dde6431b9bd3039874d173f95 (patch)
tree13c4ae3fbd7d5d7d81c63415a292e62064dadf06
parent0e9f77b9d8a150953cacc086b89d7884715d1366 (diff)
downloadtor-da741a978bdb5a0dde6431b9bd3039874d173f95.tar.gz
tor-da741a978bdb5a0dde6431b9bd3039874d173f95.zip
forward-port: switch runuser to _tor, and make the logrotate script better
svn:r3180
-rw-r--r--tor.spec.in19
1 files changed, 13 insertions, 6 deletions
diff --git a/tor.spec.in b/tor.spec.in
index 2499510a2f..d111e06873 100644
--- a/tor.spec.in
+++ b/tor.spec.in
@@ -6,13 +6,13 @@
# This should be incremented whenever the spec file changes, but
# can drop back to zero at a new Tor version
-%define specver 1
+%define specver 2
## Things users may want to change
#
# User (and group) name under which the Tor daemon runs
-%define runuser tordmn
+%define runuser _tor
## Version song and dance
#
@@ -166,10 +166,17 @@ q
# but hey...
%__mkdir_p -m 755 ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
%__cat > ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name} << /EOF/
-%{_localstatedir}/log/%{name} {
- missingok
- notifempty
- sharedscripts
+%{_localstatedir}/log/%{name}/*log {
+ daily
+ rotate 5
+ compress
+ delaycompress
+ missingok
+ notifempty
+ sharedscripts
+ postrotate
+ /etc/rc.d/init.d/tor reload > /dev/null
+ endscript
}
/EOF/