public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/minidlna/files: minidlna-1.1.0-r3.service minidlna-1.1.0-r3.initd
@ 2013-09-05 20:25 Michael Weber (xmw)
  0 siblings, 0 replies; only message in thread
From: Michael Weber (xmw) @ 2013-09-05 20:25 UTC (permalink / raw
  To: gentoo-commits

xmw         13/09/05 20:25:35

  Added:                minidlna-1.1.0-r3.service minidlna-1.1.0-r3.initd
  Log:
  Revbump to fix systemd support (thanks Dmitry, bug 483780).Revbump to fix systemd support (thanks Dmitry, bug 483780).
  
  (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)

Revision  Changes    Path
1.1                  net-misc/minidlna/files/minidlna-1.1.0-r3.service

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.0-r3.service?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.0-r3.service?rev=1.1&content-type=text/plain

Index: minidlna-1.1.0-r3.service
===================================================================
[Unit]
Description=MiniDLNA is a DLNA/UPnP-AV server software
After=syslog.target local-fs.target network.target

[Service]
User=minidlna
Group=minidlna
ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf -P /run/minidlna/minidlna.pid -S

[Install]
WantedBy=multi-user.target



1.1                  net-misc/minidlna/files/minidlna-1.1.0-r3.initd

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.0-r3.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.0-r3.initd?rev=1.1&content-type=text/plain

Index: minidlna-1.1.0-r3.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.0-r3.initd,v 1.1 2013/09/05 20:25:35 xmw Exp $

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 $?
}





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-09-05 20:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 20:25 [gentoo-commits] gentoo-x86 commit in net-misc/minidlna/files: minidlna-1.1.0-r3.service minidlna-1.1.0-r3.initd Michael Weber (xmw)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox