Justin Maggard 138d03db19 Reload log file on SIGHUP
There's a report about a nightly "crash" when users download, compile
from source, and replace their distro's mindlnad binary.  This is because
the Debian package includes a patch that uses SIGUSR2 to reopen the log
file and sends SIGUSR2 from logrotate instead of just using the
"copytruncate" logrotate option.  Then logrotate sends SIGUSR2 at 6:25AM,
which causes us to abort due to the unhandled signal.

I don't want to sacrifice SIGUSR2 just for log rotation, especially when
we already do some reload operations on SIGHUP.  So to avoid this
Debian/Ubuntu issue, we'll explicitly ignore SIGUSR2, and add log file
reopening to the SIGHUP handler.  Then hopefully a future Debian package
version will remove the SIGUSR2 patch and use SIGHUP instead (or
copytruncate).

Fixes: SF Bug #313 (log rotation kills minidlna service)
2018-01-23 22:01:10 -08:00
2011-11-02 06:59:48 +00:00
2013-11-01 18:05:31 -07:00
2017-04-28 01:18:53 -07:00
2018-01-16 17:05:40 -08:00
2017-03-16 12:09:59 -07:00
2008-10-23 17:30:45 +00:00
2018-01-23 22:01:10 -08:00
2018-01-23 22:01:10 -08:00
2017-08-22 15:30:10 -07:00
2018-01-23 22:01:10 -08:00
2018-01-11 16:09:15 -08:00
2018-01-11 16:09:15 -08:00
2018-01-11 16:09:15 -08:00
2018-01-16 17:12:20 -08:00
2018-01-16 17:05:40 -08:00
2017-08-24 10:28:25 -07:00
2017-08-22 15:30:10 -07:00
2017-08-22 15:30:10 -07:00
2018-01-16 17:05:40 -08:00
2018-01-16 16:55:26 -08:00
2017-08-23 23:43:42 -07:00
2014-04-21 15:43:13 -07:00
2012-06-30 00:26:55 +00:00
2018-01-16 16:53:10 -08:00
2018-01-23 22:01:10 -08:00
2018-01-23 22:01:10 -08:00
2018-01-16 16:49:49 -08:00
2018-01-03 23:01:46 -08:00

MiniDLNA project
(c) 2009 Justin Maggard
Portions (c) 2006-2007 Thomas Bernard
webpage: http://sourceforge.net/projects/minidlna/

This directory contains the MiniDLNA daemon software.
This software is subject to the conditions detailed in
the LICENCE file provided with this distribution.

Parts of the software including the discovery code are
licensed under the BSD revised license which is detailed
in the LICENSE.miniupnpd file provided with the distribution.
More information on MiniUPnPd can be found at http://miniupnp.free.fr.


The MiniDLNA daemon is an UPnP-A/V and DLNA service which
serves multimedia content to compatible clients on the network.
See http://www.upnp.org/ for more details on UPnP
and http://www.dlna.org/ for mode details on DLNA.

Prerequisites
==================

- libexif
- libjpeg
- libid3tag
- libFLAC
- libvorbis
- libsqlite3
- libavformat (the ffmpeg libraries)


Justin Maggard
Description
A fork of readymedia/minidlna with opus support added
Readme 1.6 MiB
Languages
C 96.4%
M4 2.2%
Roff 0.8%
Shell 0.3%
Makefile 0.3%