diff options
author | Michael Weber <xmw@gentoo.org> | 2017-03-19 12:56:34 +0100 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2017-03-19 15:38:58 +0100 |
commit | 602d60245ccc9cb24d4268f25a95e7a8b78bbc80 (patch) | |
tree | 4f08bcd500655981a21661a961c132c46ebec047 /net-misc/minidlna/files | |
parent | dev-php/PEAR-PEAR_PackageFileManager: Revbump to fix WORKDIR wrt bug 613122 (diff) | |
download | gentoo-602d60245ccc9cb24d4268f25a95e7a8b78bbc80.tar.gz gentoo-602d60245ccc9cb24d4268f25a95e7a8b78bbc80.tar.bz2 gentoo-602d60245ccc9cb24d4268f25a95e7a8b78bbc80.zip |
net-misc/minidlna: Remove old versions.
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'net-misc/minidlna/files')
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.1.2.initd | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/net-misc/minidlna/files/minidlna-1.1.2.initd b/net-misc/minidlna/files/minidlna-1.1.2.initd deleted file mode 100644 index eeb0786f0b51..000000000000 --- a/net-misc/minidlna/files/minidlna-1.1.2.initd +++ /dev/null @@ -1,52 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2013 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net -} - -start() { - ebegin "Starting MiniDLNA" - local params="" - local stop=0 - - checkpath -q -d -m 0755 -o ${M_USER:-minidlna}:${M_GROUP:-minidlna} /run/minidlna - - params="$params -P /run/minidlna/minidlna.pid" - - if [[ "${RESCAN}" = "true" || "${RESCAN}" = yes ]]; then - params="$params -R" - fi - - #set the config file and check if it exists - if [ -z "${CONFIG}" ]; then - if [ ! -f "/etc/minidlna.conf" ]; then - ewarn "You did not set the config file correctly" - stop=1 - fi - params="$params -f /etc/minidlna.conf" - else - if [ ! -f "${CONFIG}" ]; then - ewarn "The specified config file does not exist" - stop=1 - fi - params="$params -f ${CONFIG}" - fi - - - if [ $stop -eq 1 ]; then - eend 1 - else - start-stop-daemon --start \ - --user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna} \ - --exec /usr/sbin/minidlnad -- ${params} - eend $? - fi -} - -stop() { - ebegin "Stopping MiniDLNA" - start-stop-daemon --stop --quiet --exec /usr/sbin/minidlnad - eend $? -} |