PageRenderTime 68ms CodeModel.GetById 65ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/net-misc/mediatomb/mediatomb.initd

http://github.com/stsquad/Gentoo-Overlay
Unknown | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | cdfdf2b4ff1f7b10b414572b0ac04d26 MD5 | raw file
 1#!/sbin/runscript
 2
 3depend() {
 4	need net #MYSQL#
 5}
 6
 7start() {
 8	ebegin "Starting MediaTomb"
 9	start-stop-daemon --start --quiet --exec /usr/bin/mediatomb \
10		--pidfile ${MEDIATOMB_PIDFILE} -- --daemon \
11		--pidfile ${MEDIATOMB_PIDFILE} --user ${MEDIATOMB_USER} \
12		--group ${MEDIATOMB_GROUP} --logfile ${MEDIATOMB_LOGFILE} \
13		--config ${MEDIATOMB_CONFIG} --port ${MEDIATOMB_PORT} \
14		${MEDIATOMB_OPTIONS}
15	eend $?
16}
17
18stop () {
19	ebegin "Stopping MediaTomb"
20	start-stop-daemon --stop --retry 10 --quiet --pidfile ${MEDIATOMB_PIDFILE}
21	eend $?
22}