summaryrefslogtreecommitdiff
path: root/network/murmur/rc.murmur
diff options
context:
space:
mode:
authorRuben Schuller <sb@rbn.im>2021-07-16 22:28:57 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-07-19 16:23:32 +0700
commit08be912ab0052acfd041725c341f37b91a5840c7 (patch)
tree95038d268a70d5a169fa75e2ededb27d4cd361c4 /network/murmur/rc.murmur
parent1c76d01f2d644c1c104475a970ec512dd33f849c (diff)
downloadslackbuilds-08be912ab0052acfd041725c341f37b91a5840c7.tar.gz
network/murmur: Create piddir during init
Signed-off-by: Robby Workman <rworkman@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/murmur/rc.murmur')
-rw-r--r--network/murmur/rc.murmur5
1 files changed, 4 insertions, 1 deletions
diff --git a/network/murmur/rc.murmur b/network/murmur/rc.murmur
index 90d3c99a40..e14567938b 100644
--- a/network/murmur/rc.murmur
+++ b/network/murmur/rc.murmur
@@ -1,9 +1,12 @@
#!/bin/bash
-PIDFILE=""
+PIDFILE=/var/run/murmur/murmur.pid
murmur_start() {
echo -n "Starting Murmur Server: "
+ mkdir -p $(dirname $PIDFILE)
+ chown @USER@:@GROUP@ $(dirname $PIDFILE)
+
if [ ! -f $PIDFILE ]; then
/usr/bin/murmurd -ini /etc/murmur.ini & > /dev/null 2>&1
echo "OK"