diff options
author | Heinz Wiesinger <pprkut@slackbuilds.org> | 2016-02-21 16:57:49 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2016-02-23 00:57:51 +0700 |
commit | 056d6ea03cc8f0561a038b29236a5455de329521 (patch) | |
tree | 879c02270a86099baae597491fbdff82a794ccf2 /multimedia/mediatomb/rc.mediatomb | |
parent | e9a423827765fb7c0a33573694ad902e8b4668fe (diff) | |
download | slackbuilds-056d6ea03cc8f0561a038b29236a5455de329521.tar.gz |
multimedia/mediatomb: Don't include /var/run directory in package.
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>
Diffstat (limited to 'multimedia/mediatomb/rc.mediatomb')
-rw-r--r-- | multimedia/mediatomb/rc.mediatomb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/multimedia/mediatomb/rc.mediatomb b/multimedia/mediatomb/rc.mediatomb index 92804835b9..206fb70741 100644 --- a/multimedia/mediatomb/rc.mediatomb +++ b/multimedia/mediatomb/rc.mediatomb @@ -4,6 +4,7 @@ # Authors: Heinz Wiesinger <pprkut@liwjatan.at> # --------------------------------------------------------------------------- +MEDIATOMB_PIDDIR="/var/run/mediatomb/" MEDIATOMB_PIDFILE="/var/run/mediatomb/mediatomb.pid" MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log" @@ -13,6 +14,9 @@ MEDIATOMB_LOGFILE="/var/log/mediatomb/mediatomb.log" mediatomb_start() { echo -n "Starting mediatomb ... " + if ! [ -e "${MEDIATOMB_PIDDIR}" ]; then + mkdir -p "${MEDIATOMB_PIDDIR}" + fi if [ -e "${MEDIATOMB_PIDFILE}" ]; then echo "already running!" else |