Upstart und installscripten für mediatomb

git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_mediatomb@5822 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
kueller 2010-09-09 11:16:40 +00:00
commit 1cba0ad3ba
3 changed files with 28 additions and 0 deletions

12
etc/init/mediatomb.conf Normal file
View 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
View 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 56 -g dlna -d /var/dlna -s /bin/false dlna
fi

8
tmp/postremove Normal file
View 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