diff options
author | Baptiste DURAND <baptiste.durand@gmail.com> | 2018-09-11 20:17:04 +0200 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-09-11 22:48:21 -0700 |
commit | 9e050f01a9edd43a3dc55c7cf63c4aa08767246d (patch) | |
tree | 346356e956ca7053e2870765a942373bb6e7f1e5 /meta-oe/recipes-multimedia | |
parent | f0b1f3d30bff1418b655bbde7f4c2e84c2afcc4d (diff) | |
download | meta-openembedded-9e050f01a9edd43a3dc55c7cf63c4aa08767246d.tar.gz |
minidlna: restore & fix recipe
Restore minidlna recipe and bump it to v1.2.1
Move it to meta-multimedia
Signed-off-by: Baptiste Durand <baptiste.durand@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia')
-rw-r--r-- | meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d | 54 | ||||
-rw-r--r-- | meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service | 10 |
2 files changed, 0 insertions, 64 deletions
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d deleted file mode 100644 index 9e64a20fd..000000000 --- a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna-daemon.init.d +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | NAME="minidlna" | ||
4 | DAEMON=/usr/sbin/minidlnad | ||
5 | SCRIPTNAME=/etc/init.d/$NAME | ||
6 | PIDFILE=/var/run/$NAME.pid | ||
7 | CONF=/etc/$NAME.conf | ||
8 | ARGS="-f $CONF" | ||
9 | |||
10 | # Exit if the package is not installed | ||
11 | [ -x "$DAEMON" ] || exit 0 | ||
12 | |||
13 | start_function() { | ||
14 | |||
15 | export PATH=$PWD:$PATH | ||
16 | |||
17 | if [ -f ${PIDFILE} ]; then | ||
18 | echo "$SCRIPTNAME already running with PID #`cat $PIDFILE` ( according to ${PIDFILE} )"; | ||
19 | exit 0 | ||
20 | fi | ||
21 | |||
22 | $DAEMON $ARGS | ||
23 | |||
24 | pid=$! | ||
25 | |||
26 | if [ "$pid" != "" ]; then | ||
27 | echo -n "$pid" > ${PIDFILE} | ||
28 | fi | ||
29 | } | ||
30 | |||
31 | stop_function() { | ||
32 | |||
33 | export PATH=$PWD:$PATH | ||
34 | |||
35 | if [ ! -e "${PIDFILE}" ]; then | ||
36 | echo "${SCRIPTNAME} not running ( according to ${PIDFILE} )"; | ||
37 | exit 1; | ||
38 | fi | ||
39 | PID=`cat ${PIDFILE}` | ||
40 | kill -INT ${PID} | ||
41 | rm -f ${PIDFILE} | ||
42 | } | ||
43 | |||
44 | case $1 in | ||
45 | "start") | ||
46 | start_function | ||
47 | ;; | ||
48 | "stop") | ||
49 | stop_function | ||
50 | ;; | ||
51 | *) | ||
52 | echo "Usage: $0 {start | stop}" | ||
53 | |||
54 | esac | ||
diff --git a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service b/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service deleted file mode 100644 index 656100bb6..000000000 --- a/meta-oe/recipes-multimedia/minidlna/minidlna/minidlna.service +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | [Unit] | ||
2 | Description=Minidlna Daemon | ||
3 | After=network.target | ||
4 | |||
5 | [Service] | ||
6 | Type=notify | ||
7 | ExecStart=/usr/sbin/minidlnad -f /etc/minidlna.conf | ||
8 | |||
9 | [Install] | ||
10 | WantedBy=multi-user.target | ||