* [gentoo-commits] gentoo-x86 commit in net-misc/minidlna/files: minidlna-1.1.1.initd minidlna-1.1.1.service minidlna-1.1.2.initd minidlna-1.1.2.service
@ 2014-03-17 20:37 Steve Dibb (beandog)
0 siblings, 0 replies; only message in thread
From: Steve Dibb (beandog) @ 2014-03-17 20:37 UTC (permalink / raw
To: gentoo-commits
beandog 14/03/17 20:37:20
Added: minidlna-1.1.1.initd minidlna-1.1.1.service
minidlna-1.1.2.initd minidlna-1.1.2.service
Log:
Add missing .service, .initd files, bug 490978
Revision Changes Path
1.1 net-misc/minidlna/files/minidlna-1.1.1.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.1.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.1.initd?rev=1.1&content-type=text/plain
Index: minidlna-1.1.1.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.1.initd,v 1.1 2014/03/17 20:37:19 beandog 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 $?
}
1.1 net-misc/minidlna/files/minidlna-1.1.1.service
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.1.service?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.1.service?rev=1.1&content-type=text/plain
Index: minidlna-1.1.1.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.2.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.2.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.2.initd?rev=1.1&content-type=text/plain
Index: minidlna-1.1.2.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.2.initd,v 1.1 2014/03/17 20:37:19 beandog 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 $?
}
1.1 net-misc/minidlna/files/minidlna-1.1.2.service
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.2.service?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/minidlna/files/minidlna-1.1.2.service?rev=1.1&content-type=text/plain
Index: minidlna-1.1.2.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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-17 20:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-17 20:37 [gentoo-commits] gentoo-x86 commit in net-misc/minidlna/files: minidlna-1.1.1.initd minidlna-1.1.1.service minidlna-1.1.2.initd minidlna-1.1.2.service Steve Dibb (beandog)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox