mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-22 17:02:58 +02:00
49 lines
840 B
Bash
49 lines
840 B
Bash
#!/bin/sh
|
|
########################################################################
|
|
# Begin $rc_base/init.d/minidlna
|
|
#
|
|
# Description : minidlna - UPNP/DLNA streaming server
|
|
#
|
|
# Authors : Michael Tremer <michael.tremer@ipfire.org>
|
|
#
|
|
# Version : 01.00
|
|
#
|
|
########################################################################
|
|
|
|
. /etc/sysconfig/rc
|
|
. ${rc_functions}
|
|
|
|
case "${1}" in
|
|
start)
|
|
boot_mesg "Starting minidlna..."
|
|
loadproc /usr/sbin/minidlnad
|
|
;;
|
|
|
|
stop)
|
|
boot_mesg "Stopping minidlna..."
|
|
killproc /usr/sbin/minidlnad
|
|
;;
|
|
|
|
reload)
|
|
boot_mesg "Reloading minidlna..."
|
|
reloadproc /usr/sbin/minidlnad
|
|
;;
|
|
|
|
restart)
|
|
${0} stop
|
|
sleep 1
|
|
${0} start
|
|
;;
|
|
|
|
status)
|
|
statusproc /usr/sbin/minidlnad
|
|
;;
|
|
|
|
*)
|
|
echo "Usage: ${0} {start|stop|reload|restart|status}"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
# End $rc_base/init.d/minidlna
|