Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/mediatomb/files: mediatomb-0.12.0.confd mediatomb-0.12.0.initd
Date: Tue, 30 Mar 2010 01:13:30
Message-Id: E1NwQ1G-0006eH-NT@stork.gentoo.org
darkside    10/03/30 01:13:26

  Added:                mediatomb-0.12.0.confd mediatomb-0.12.0.initd
  Log:
  minor revbump to grab new init/conf files from bug 264235 that I forgot
  (Portage version: 2.1.8.3/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  net-misc/mediatomb/files/mediatomb-0.12.0.confd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.0.confd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.0.confd?rev=1.1&content-type=text/plain

Index: mediatomb-0.12.0.confd
===================================================================
# /etc/conf.d/mediatomb: config file for /etc/init.d/mediatomb

# See the mediatomb(1) manpage for more info.

# MediaTomb Web UI port.
# NOTE: The minimum value allowed is 49152
MEDIATOMB_PORT=49152

# Run MediaTomb as this user.
# NOTE: For security reasons do not run MediaTomb as root.
MEDIATOMB_USER="mediatomb"

# Run MediaTomb as this group.
# NOTE: For security reasons do not run MediaTomb as root.
MEDIATOMB_GROUP="mediatomb"

# Path to MediaTomb config file.
MEDIATOMB_CONFIG="/etc/mediatomb/config.xml"

# Path to MediaTomb log file.
MEDIATOMB_LOGFILE="/var/log/mediatomb.log"

# Path to MediaTomb pid file.
MEDIATOMB_PIDFILE="/var/run/mediatomb.pid"

# Other options you want to pass to MediaTomb.
MEDIATOMB_OPTIONS=""



1.1                  net-misc/mediatomb/files/mediatomb-0.12.0.initd

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.0.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/mediatomb/files/mediatomb-0.12.0.initd?rev=1.1&content-type=text/plain

Index: mediatomb-0.12.0.initd
===================================================================
#!/sbin/runscript

depend() {
	need net #MYSQL#
}

start() {
	ebegin "Starting MediaTomb"
	start-stop-daemon --start --quiet --exec /usr/bin/mediatomb \
		--pidfile ${MEDIATOMB_PIDFILE} -- --daemon \
		--pidfile ${MEDIATOMB_PIDFILE} --user ${MEDIATOMB_USER} \
		--group ${MEDIATOMB_GROUP} --logfile ${MEDIATOMB_LOGFILE} \
		--config ${MEDIATOMB_CONFIG} --port ${MEDIATOMB_PORT} \
		${MEDIATOMB_OPTIONS}
	eend $?
}

stop () {
	ebegin "Stopping MediaTomb"
	start-stop-daemon --stop --retry 10 --quiet --pidfile ${MEDIATOMB_PIDFILE}
	eend $?
}