diff options
author | Michael Weber <xmw@gentoo.org> | 2015-10-03 19:03:57 +0200 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2015-10-03 19:04:54 +0200 |
commit | bbae599699063133cdc9764b93270b11e3af9108 (patch) | |
tree | ef4a52b36c0570c3da08afeb8c0ec49dd1a1bef8 /net-misc/minidlna/files/minidlna-1.0.23-r1.initd | |
parent | sys-fs/lvm2: fix 'static' USE flag (diff) | |
download | gentoo-bbae599699063133cdc9764b93270b11e3af9108.tar.gz gentoo-bbae599699063133cdc9764b93270b11e3af9108.tar.bz2 gentoo-bbae599699063133cdc9764b93270b11e3af9108.zip |
net-misc/minidlna: cleanup FILESDIR
Package-Manager: portage-2.2.21
Diffstat (limited to 'net-misc/minidlna/files/minidlna-1.0.23-r1.initd')
-rw-r--r-- | net-misc/minidlna/files/minidlna-1.0.23-r1.initd | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/net-misc/minidlna/files/minidlna-1.0.23-r1.initd b/net-misc/minidlna/files/minidlna-1.0.23-r1.initd deleted file mode 100644 index b014edb77106..000000000000 --- a/net-misc/minidlna/files/minidlna-1.0.23-r1.initd +++ /dev/null @@ -1,53 +0,0 @@ -#!/sbin/runscript -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -depend() { - need net -} - -start() { - ebegin "Starting MiniDLNA" - 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 - - #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:-nobody} --group ${M_GROUP:-nogroup} \ - --exec /usr/sbin/minidlna -- ${params} - eend $? - fi -} - -stop() { - ebegin "Stopping MiniDLNA" - start-stop-daemon --stop --quiet --exec /usr/sbin/minidlna - eend $? -} |