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

Last change on this file since 23325 was 23325, checked in by nit, 11 years ago

[titan] fix

  • Property svn:executable set to *
File size: 691 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:/mnt/swapextensions/bin:/var/bin
11export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/var/swap/lib:/mnt/swapextensions/lib
12       
13NAME=minidlna
14DESC="MiniDLNA"
15DAEMON=minidlna
16USER=root
17GROUP=root
18 
19params="-f $2 -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: dlna.sh {start|restart|stop}"
34  ;;
35esac
Note: See TracBrowser for help on using the repository browser.