mirror of
				https://git.proxmox.com/git/mirror_frr
				synced 2025-10-31 03:30:07 +00:00 
			
		
		
		
	 495feb8a41
			
		
	
	
		495feb8a41
		
	
	
	
	
		
			
			Debian build systems use debian subdir for building and having a debian dir in the source package causes issues. Moving it to debianpkg avoids the issue and allows us to ship debian package files in the source distribution Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
		
			
				
	
	
		
			28 lines
		
	
	
		
			958 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			958 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| /var/log/frr/*.log {
 | |
|         size 500k
 | |
|         sharedscripts
 | |
|         missingok
 | |
|         compress
 | |
|         rotate 14
 | |
|         create 640 frr frrvty
 | |
| 
 | |
|         postrotate
 | |
|             pid=$(lsof -t -a -c /syslog/ /var/log/frr/* 2>/dev/null)
 | |
|             if [ -n "$pid" ]
 | |
|             then # using syslog
 | |
|                  kill -HUP $pid
 | |
|             fi
 | |
|             # in case using file logging; if switching back and forth
 | |
|             # between file and syslog, rsyslogd might still have file
 | |
|             # open, as well as the daemons, so always signal the daemons.
 | |
|             # It's safe, a NOP if (only) syslog is being used.
 | |
|             for i in babeld bgpd eigrpd isisd ldpd nhrpd ospf6d ospfd \
 | |
|                 pimd ripd ripngd zebra ; do
 | |
|                 if [ -e /var/run/frr/$i.pid ] ; then
 | |
|                     pids="$pids $(cat /var/run/frr/$i.pid)"
 | |
|                 fi
 | |
|             done
 | |
|             [ -n "$pids" ] && kill -USR1 $pids || true
 | |
|         endscript
 | |
| }
 |