From 40b28e7360254ff8d1b79536195632c4584fd50d Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Mon, 8 Aug 2011 14:39:53 +0200 Subject: [PATCH] Fix Arch init script --- ChangeLog | 1 + script/init.Arch | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8acf3d4f..05d9fc7f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,4 @@ +v0.95.13 08-Aug-2011 general: Added support for Arch Linux. diff --git a/script/init.Arch b/script/init.Arch index c1bbbe8d..6a70bab9 100644 --- a/script/init.Arch +++ b/script/init.Arch @@ -5,7 +5,7 @@ . /etc/rc.conf . /etc/rc.d/functions -MBSE_ROOT=`cat /etc/passwd | grep ^mbse: | awk -F ':' '{ print $6}'` +MBSE_ROOT=$(cat /etc/passwd | grep ^mbse: | awk -F ':' '{ print $6}') export MBSE_ROOT case "$1" in @@ -16,7 +16,7 @@ start) rm -f ${MBSE_ROOT}/var/*.LCK rm -f ${MBSE_ROOT}/tmp/mb* su mbse -c '${MBSE_ROOT}/bin/mbtask' >/dev/null - add_daemon mbtask + add_daemon mbsebbs sleep 2 if [ -f ${MBSE_ROOT}/etc/config.data ]; then su mbse -c '${MBSE_ROOT}/bin/mbstat open -quiet' @@ -45,10 +45,10 @@ stop) fi done if [ -f ${MBSE_ROOT}/var/run/mbtask ]; then - kill -9 `cat ${MBSE_ROOT}/var/run/mbtask` + kill -9 $(cat ${MBSE_ROOT}/var/run/mbtask) fi fi - rm_daemon mbtask + rm_daemon mbsebbs stat_done ;; restart)