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

Last change on this file since 22557 was 22557, checked in by obi, 11 years ago

fix

  • Property svn:executable set to *
File size: 696 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
10export PATH=$PATH:/var/swap/bin:/var/bin
11export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/swap/lib
12       
13NAME=minidlna
14DESC="MiniDLNA"
15DAEMON=minidlna
16USER=root
17GROUP=root
18 
19params="-f /var/swap/etc/minidlna.conf -R"
20 
21case $1 in
22  start)
23    start-stop-daemon --verbose --start --exec minidlna -- ${params}
24  ;;
25  stop)
26    start-stop-daemon --verbose --stop --exec minidlna
27  ;;
28  restart)
29    $0 stop
30    $0 start
31  ;;
32  *)
33    echo "Usage: /var/swap/titanplugins/dlna/dlna.sh {start|restart|stop}"
34  ;;
35esac
Note: See TracBrowser for help on using the repository browser.