source: titan/plugins/dlna/dlna.sh @ 15685

Last change on this file since 15685 was 15685, checked in by obi, 8 years ago

fix dlna dir

File size: 603 bytes
Line 
1#! /bin/sh
2#
3### BEGIN INIT INFO
4# Provides:             minidlna
5# Required-Start:       $network
6# Required-Stop:        $network
7# Short-Description:    MiniDLNA Server
8### END INIT INFO
9 
10NAME=minidlna
11DESC="MiniDLNA"
12DAEMON=/usr/bin/minidlna
13USER=root
14GROUP=root
15 
16params="-f /etc/minidlna.conf -R"
17 
18case $1 in
19  start)
20    start-stop-daemon --verbose --start --exec /usr/sbin/minidlna -- ${params}
21  ;;
22  stop)
23    start-stop-daemon --verbose --stop --exec /usr/sbin/minidlna
24  ;;
25  restart)
26    $0 stop
27    $0 start
28  ;;
29  *)
30    echo "Usage: /etc/init.d/minidlna {start|restart|stop}"
31  ;;
32esac
Note: See TracBrowser for help on using the repository browser.