PageRenderTime 53ms CodeModel.GetById 50ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/stsquad/Gentoo-Overlay
Unknown | 22 lines | 19 code | 3 blank | 0 comment | 0 complexity | 08660d59fe4c3fe43c9df96db868ffe6 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		--interface ${MEDIATOMB_INTERFACE} ${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}