Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_mediatomb@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
e44926b153
12
etc/init/mediatomb.conf
Normal file
12
etc/init/mediatomb.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
description "Samba file Deamon"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on (runlevel [2345] and (started autofs-nis))
|
||||||
|
stop on runlevel [016]
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
respawn
|
||||||
|
exec /opt/mediatomb/bin/mediatomb --user dlna --group music --home /var/dlna --port 49152
|
8
tmp/postinstall
Normal file
8
tmp/postinstall
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if ! getent group dlna >/dev/null; then
|
||||||
|
groupadd -g 34 dlna
|
||||||
|
fi
|
||||||
|
if ! getent passwd dlna >/dev/null; then
|
||||||
|
useradd -u 57 -g dlna -d /var/dlna -s /bin/false dlna
|
||||||
|
fi
|
8
tmp/postremove
Normal file
8
tmp/postremove
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if getent passwd dlna >/dev/null; then
|
||||||
|
userdel dlna
|
||||||
|
fi
|
||||||
|
if getent group dlna >/dev/null; then
|
||||||
|
groupdel dlna
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user