pacho       14/05/02 10:57:57

  Modified:             lighttpd.service
  Added:                lighttpd.logrotate-r1
  Log:
  Handle systemd in logrotate file (#508526 by SN)
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
A188FBD4)

Revision  Changes    Path
1.2                  www-servers/lighttpd/files/lighttpd.service

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/files/lighttpd.service?rev=1.2&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/files/lighttpd.service?rev=1.2&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/files/lighttpd.service?r1=1.1&r2=1.2

Index: lighttpd.service
===================================================================
RCS file: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.service,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- lighttpd.service    21 Apr 2013 09:27:39 -0000      1.1
+++ lighttpd.service    2 May 2014 10:57:57 -0000       1.2
@@ -3,7 +3,6 @@
 After=syslog.target network.target
 
 [Service]
-PIDFile=/var/run/lighttpd.pid
 ExecStart=/usr/sbin/lighttpd -D -f /etc/lighttpd/lighttpd.conf
 
 [Install]



1.1                  www-servers/lighttpd/files/lighttpd.logrotate-r1

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1?rev=1.1&content-type=text/plain

Index: lighttpd.logrotate-r1
===================================================================
# $Header: 
/var/cvsroot/gentoo-x86/www-servers/lighttpd/files/lighttpd.logrotate-r1,v 1.1 
2014/05/02 10:57:57 pacho Exp $
# lighttpd logrotate script for Gentoo

/var/log/lighttpd/*.log {
        daily
        missingok
                copytruncate
        rotate 7
        compress
        notifempty
        sharedscripts
        postrotate
                test -e /run/openrc/softlevel && /etc/init.d/lighttpd reload 
1>/dev/null || true
                test -e /run/systemd/system && systemctl restart lighttpd 
reload 1>/dev/null || true
        endscript
}




Reply via email to