From e44926b153ffd18cff25280aed463f3d00d2caf0 Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 3 Jan 2011 10:48:06 +0000 Subject: [PATCH] Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_mediatomb@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init/mediatomb.conf | 12 ++++++++++++ tmp/postinstall | 8 ++++++++ tmp/postremove | 8 ++++++++ 3 files changed, 28 insertions(+) create mode 100644 etc/init/mediatomb.conf create mode 100644 tmp/postinstall create mode 100644 tmp/postremove diff --git a/etc/init/mediatomb.conf b/etc/init/mediatomb.conf new file mode 100644 index 0000000..f59415c --- /dev/null +++ b/etc/init/mediatomb.conf @@ -0,0 +1,12 @@ +description "Samba file Deamon" +author "Harald Kueller " +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 diff --git a/tmp/postinstall b/tmp/postinstall new file mode 100644 index 0000000..9e9a95b --- /dev/null +++ b/tmp/postinstall @@ -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 diff --git a/tmp/postremove b/tmp/postremove new file mode 100644 index 0000000..708c0e1 --- /dev/null +++ b/tmp/postremove @@ -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