Login Register


Please held with this service filter_list
Author
Message
Please held with this service #1
I have cloned linux installation from USB drive to another. The system is Fedora core 8 and it is used as a software for encoding live stream (it's using PCI encoding cards). The system works well on original hardware configuration, however when I use this cloned flash drive on another hardware configuration one service will not start. It is a "calld" service and it is a service which has a protection which limits its execution to original hardware platform only (mac authentication probably). I need to get this service up, so when I type command "service calld starts/tatus" or "etc/init.d/calld start" I get response "service is dead and subsystems are locked". I tried matching mac address to original hardware configuration but still the same. This is a config file of service /etc/init.d/calld

#!/bin/bash
#
# /etc/rc.d/init.d/calld
#
# Starts the calld
#
# chkconfig: 345 44 56
# description: xxxxxx
# processname: calld

### BEGIN INIT INFO
# Provides: calld
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop calld
# Description: xxxxxx
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

start() {
# Check that we're a privileged user
[ `id -u` = 0 ] || exit 4

# Check if acpid is executable
test -x /dmc/bin/calld || exit 5

if [ ! -f /var/lock/subsys/calld -a -f /usr/local/lib/libm60strm.so ]
then
echo 20 > /proc/sys/vm/dirty_ratio
echo 15 > /proc/sys/vm/dirty_background_ratio
echo 30000 > /proc/sys/vm/dirty_expire_centisecs
echo 200 > /proc/sys/vm/vfs_cache_pressure

echo -n $"Starting calld daemon: "
#su - dmcuser -c "DISPLAY=:0 /dmc/bin/calld" &> /dev/null &
DISPLAY=:0 /dmc/bin/calld &> /dev/null &
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/calld
echo
fi
return $RETVAL
}

stop() {
echo -n $"Stopping calld daemon: "
killproc /dmc/bin/calld
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/calld
echo
return $RETVAL
}


restart() {
stop
start
}

reload() {
trap "" SIGHUP
action $"Reloading calld daemon:" killall -HUP calld
RETVAL=$?
return $RETVAL
}

case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
force-reload)
echo "$0: Unimplemented feature."
RETVAL=3
;;
restart)
restart
;;
condrestart)
if [ -f /var/lock/subsys/calld ]; then
restart
fi
;;
status)
status calld
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|forc e-reload}"
RETVAL=2
esac

exit $RETVAL

I wonder is it possible to get it up by changing its configuration. If so I need help here though I'm not an expert in this.

Reply

RE: Please held with this service #2
(08-08-2011, 10:46 AM)Ashik Wrote: I have cloned linux installation from USB drive to another. The system is Fedora core 8 and it is used as a software for encoding live stream (it's using PCI encoding cards). The system works well on original hardware configuration, however when I use this cloned flash drive on another hardware configuration one service will not start. It is a "calld" service and it is a service which has a protection which limits its execution to original hardware platform only (mac authentication probably). I need to get this service up, so when I type command "service calld starts/tatus" or "etc/init.d/calld start" I get response "service is dead and subsystems are locked". I tried matching mac address to original hardware configuration but still the same. This is a config file of service /etc/init.d/calld

#!/bin/bash
#
# /etc/rc.d/init.d/calld
#
# Starts the calld
#
# chkconfig: 345 44 56
# description: xxxxxx
# processname: calld

### BEGIN INIT INFO
# Provides: calld
# Required-Start: $syslog $local_fs
# Required-Stop: $syslog $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start and stop calld
# Description: xxxxxx
### END INIT INFO

# Source function library.
. /etc/rc.d/init.d/functions

RETVAL=0

#
# See how we were called.
#

start() {
# Check that we're a privileged user
[ `id -u` = 0 ] || exit 4

# Check if acpid is executable
test -x /dmc/bin/calld || exit 5

if [ ! -f /var/lock/subsys/calld -a -f /usr/local/lib/libm60strm.so ]
then
echo 20 > /proc/sys/vm/dirty_ratio
echo 15 > /proc/sys/vm/dirty_background_ratio
echo 30000 > /proc/sys/vm/dirty_expire_centisecs
echo 200 > /proc/sys/vm/vfs_cache_pressure

echo -n $"Starting calld daemon: "
#su - dmcuser -c "DISPLAY=:0 /dmc/bin/calld" &> /dev/null &
DISPLAY=:0 /dmc/bin/calld &> /dev/null &
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/calld
echo
fi
return $RETVAL
}

stop() {
echo -n $"Stopping calld daemon: "
killproc /dmc/bin/calld
RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/calld
echo
return $RETVAL
}


restart() {
stop
start
}

reload() {
trap "" SIGHUP
action $"Reloading calld daemon:" killall -HUP calld
RETVAL=$?
return $RETVAL
}

case "$1" in
start)
start
;;
stop)
stop
;;
reload)
reload
;;
force-reload)
echo "$0: Unimplemented feature."
RETVAL=3
;;
restart)
restart
;;
condrestart)
if [ -f /var/lock/subsys/calld ]; then
restart
fi
;;
status)
status calld
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|forc e-reload}"
RETVAL=2
esac

exit $RETVAL

I wonder is it possible to get it up by changing its configuration. If so I need help here though I'm not an expert in this.

Anyone?

Reply







Users browsing this thread: 1 Guest(s)