[arch-commits] Commit in thttpd/trunk (logrotate.d)

Gaetan Bisson bisson at archlinux.org
Fri Aug 15 03:31:45 UTC 2014


    Date: Friday, August 15, 2014 @ 05:31:45
  Author: bisson
Revision: 117419

deprecate rc.d

Modified:
  thttpd/trunk/logrotate.d

-------------+
 logrotate.d |    9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

Modified: logrotate.d
===================================================================
--- logrotate.d	2014-08-15 02:43:56 UTC (rev 117418)
+++ logrotate.d	2014-08-15 03:31:45 UTC (rev 117419)
@@ -1,12 +1,7 @@
 /var/log/thttpd/*log {
 	missingok
 	postrotate
-	test -d /sys/fs/cgroup/systemd && {
-		systemctl status thttpd.service | grep -q running &&
-		systemctl restart thttpd.service >/dev/null 
-	} || {
-		rc.d list thttpd | grep -q STARTED &&
-		/etc/rc.d/thttpd restart >/dev/null
-	}
+	systemctl status thttpd.service | grep -q running &&
+	systemctl restart thttpd.service >/dev/null 
 	endscript
 }




More information about the arch-commits mailing list