minidlna: Add initscript and all the other fancy install stuff.

This commit is contained in:
Michael Tremer
2012-08-24 15:37:36 +02:00
parent 890f0b12f7
commit a53c3c2621
7 changed files with 135 additions and 0 deletions

48
src/initscripts/init.d/minidlna Executable file
View File

@@ -0,0 +1,48 @@
#!/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/minidlna
;;
stop)
boot_mesg "Stopping minidlna..."
killproc /usr/sbin/minidlna
;;
reload)
boot_mesg "Reloading minidlna..."
reloadproc /usr/sbin/minidlna
;;
restart)
${0} stop
sleep 1
${0} start
;;
status)
statusproc /usr/sbin/minidlna
;;
*)
echo "Usage: ${0} {start|stop|reload|restart|status}"
exit 1
;;
esac
# End $rc_base/init.d/minidlna