diff options
author | Michael Weber <xmw@gentoo.org> | 2012-03-26 00:23:14 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2012-03-26 00:23:14 +0000 |
commit | 09df5c3f376b54fadeb3d6b75cd252837b8a26c4 (patch) | |
tree | c780e88d2e49b18608b28054cd04ed8fe70bedce /net-misc/minidlna/files | |
parent | media-gfx/optipng: 0.7.1 (diff) | |
download | gentoo-2-09df5c3f376b54fadeb3d6b75cd252837b8a26c4.tar.gz gentoo-2-09df5c3f376b54fadeb3d6b75cd252837b8a26c4.tar.bz2 gentoo-2-09df5c3f376b54fadeb3d6b75cd252837b8a26c4.zip |
Clean up old version/files. Fix /var/run/minidlna permissions and version bump (thanks Daniel Pielmeier, bug 404571)
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/minidlna/files')
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.23-r1.initd (renamed from net-misc/minidlna/files/minidlna.initd) | 9 | ||||
-rw-r--r-- | net-misc/minidlna/files/minidlna.confd | 10 |
2 files changed, 7 insertions, 12 deletions
diff --git a/net-misc/minidlna/files/minidlna.initd b/net-misc/minidlna/files/minidlna-1.0.23-r1.initd index bb20626138c4..998bddb583f9 100644 --- a/net-misc/minidlna/files/minidlna.initd +++ b/net-misc/minidlna/files/minidlna-1.0.23-r1.initd @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/files/minidlna.initd,v 1.1 2010/12/29 16:59:25 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/files/minidlna-1.0.23-r1.initd,v 1.1 2012/03/26 00:23:14 xmw Exp $ depend() { need net @@ -12,6 +12,10 @@ start() { local params="" local stop=0 + checkpath -q -d -m 0755 -o ${M_USER:-nobody}:${M_GROUP:-nogroup} /var/run/minidlna + + params="$params -P /var/run/minidlna/minidlna.pid" + if [[ "${RESCAN}" = "true" || "{$RESCAN}" = yes ]]; then params="$params -R" fi @@ -36,6 +40,7 @@ start() { eend 1 else start-stop-daemon --start \ + --user ${M_USER:-nobody} --group ${M_GROUP:-nogroup} \ --exec /usr/sbin/minidlna -- ${params} eend $? fi diff --git a/net-misc/minidlna/files/minidlna.confd b/net-misc/minidlna/files/minidlna.confd deleted file mode 100644 index 4cc286c2b9a5..000000000000 --- a/net-misc/minidlna/files/minidlna.confd +++ /dev/null @@ -1,10 +0,0 @@ -# /etc/conf.d/minidlna - -# Should minidlna rescan the entire collection on startup? -# Warning: This may take a long time! -RESCAN="false" - -# The location of the config file -#CONFIG="/etc/minidlna.conf" - -# vim: ft=gentoo-conf-d |