summaryrefslogtreecommitdiff
path: root/community/cdemu-daemon/cdemud.rc
diff options
context:
space:
mode:
Diffstat (limited to 'community/cdemu-daemon/cdemud.rc')
-rw-r--r--community/cdemu-daemon/cdemud.rc25
1 files changed, 2 insertions, 23 deletions
diff --git a/community/cdemu-daemon/cdemud.rc b/community/cdemu-daemon/cdemud.rc
index e8dab1f08..09b9ec345 100644
--- a/community/cdemu-daemon/cdemud.rc
+++ b/community/cdemu-daemon/cdemud.rc
@@ -2,32 +2,11 @@
. /etc/rc.conf
. /etc/rc.d/functions
-. /etc/conf.d/cdemud
case "$1" in
start)
- stat_busy "Loading vhba and loop modules"
- modprobe vhba
- if [ $? -ne 0 ]; then
- stat_fail
- else
- stat_done
- fi
-
- stat_busy "Waiting for /dev/vhba_ctl"
- i=0
- until [ -c /dev/vhba_ctl -o $i -ge 10 ]; do
- i=`expr $i + 1`
- sleep 1
- done
- if [ -c /dev/vhba_ctl ]; then
- stat_done
- else
- stat_fail
- fi
-
stat_busy "Starting cdemud"
- cdemud --ctl-device=/dev/vhba_ctl --bus=$BUS --num-devices=$NUM_DEVICES --audio-driver=$AUDIO_DRIVER --logfile=$LOG_FILE &
+ /usr/lib/cdemu-daemon/cdemu-daemon-system.sh &
if [ $? -ne 0 ]; then
stat_fail
else
@@ -37,7 +16,7 @@ case "$1" in
;;
stop)
stat_busy "Stopping cdemud"
- kill -9 `pidof cdemud` &>/dev/null && sleep 1 && rmmod vhba
+ kill `pidof cdemud` &>/dev/null
if [ $? -ne 0 ]; then
stat_fail
else