[or-cvs] switch runuser to _tor, and make the logrotate script better

Roger Dingledine arma at seul.org
Sun Dec 19 03:06:03 UTC 2004


Update of /home2/or/cvsroot/tor
In directory moria.mit.edu:/home2/arma/work/onion/0091/tor

Modified Files:
      Tag: tor-0_0_9-patches
	tor.spec.in 
Log Message:
switch runuser to _tor, and make the logrotate script better


Index: tor.spec.in
===================================================================
RCS file: /home2/or/cvsroot/tor/tor.spec.in,v
retrieving revision 1.6.2.1
retrieving revision 1.6.2.2
diff -u -d -r1.6.2.1 -r1.6.2.2
--- tor.spec.in	18 Dec 2004 23:01:49 -0000	1.6.2.1
+++ tor.spec.in	19 Dec 2004 03:06:00 -0000	1.6.2.2
@@ -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
 #
@@ -199,10 +199,17 @@
 # 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/
 



More information about the tor-commits mailing list