Fedora Linux Support Community & Resources Center
  #1  
Old 8th August 2011, 02:20 PM
muharem84 Offline
Registered User
 
Join Date: Feb 2011
Posts: 10
linuxfirefox
Service dead but subsys locked

I have cloned linux installation from USB drive to another. The system is Fedora core 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.
  #2  
Old 8th August 2011, 02:46 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,062
linuxfirefox
Re: Service dead but subsys locked

Take a look in /etc/init.d/functions and you'll see this bit of code in the status() function
Quote:
# See if /var/lock/subsys/${lock_file} exists
if [ -f /var/lock/subsys/${lock_file} ]; then
echo $"${base} dead but subsys locked"
return 2
fi
this is the code that does the warning you're seeing. It implies there's a lock file, probably called /var/lock/subsys/calld
make sure calld is actually not running and then delete that file and restart your service. The lock file might have been left behind when calld died for some reason
  #3  
Old 8th August 2011, 02:49 PM
muharem84 Offline
Registered User
 
Join Date: Feb 2011
Posts: 10
linuxfirefox
Re: Service dead but subsys locked

Quote:
Originally Posted by marko View Post
Take a look in /etc/init.d/functions and you'll see this bit of code in the status() function

this is the code that does the warning you're seeing. It implies there's a lock file, probably called /var/lock/subsys/calld
make sure calld is actually not running and then delete that file and restart your service. The lock file might have been left behind when calld died for some reason
There was an empty lock file in /var/lock/subsys/calld and I deleted it. Now I have similar simptom: when I do "/etc/init.d/calld start" it doesn't report anything; when I do "/etc/init.d/calld status" it reports calld is stoped; whan I do /etc/init.d/calld restart i get report FAILED

I am more concern in a part of a code where it says "check if we are a priviledged user" - now I can only guess what "priviledged user" means
Anyone?

Last edited by muharem84; 8th August 2011 at 03:00 PM.
  #4  
Old 8th August 2011, 04:53 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,062
linuxfirefox
Re: Service dead but subsys locked

Quote:
Originally Posted by muharem84 View Post
There was an empty lock file in /var/lock/subsys/calld and I deleted it. Now I have similar simptom: when I do "/etc/init.d/calld start" it doesn't report anything; when I do "/etc/init.d/calld status" it reports calld is stoped; whan I do /etc/init.d/calld restart i get report FAILED

I am more concern in a part of a code where it says "check if we are a priviledged user" - now I can only guess what "priviledged user" means
Anyone?
You are running the service command as root user right?

Where did you get this calld service? As far as I can tell it's not part of the standard Fedora codebase.
Quote:

yum provides \*/calld
gets no results

Last edited by marko; 8th August 2011 at 04:58 PM.
  #5  
Old 8th August 2011, 05:31 PM
muharem84 Offline
Registered User
 
Join Date: Feb 2011
Posts: 10
linuxfirefox
Re: Service dead but subsys locked

It's a service that is used to encode input stream onto pci commpression card.
And I am a root user.
  #6  
Old 8th August 2011, 07:40 PM
marko Offline
Registered User
 
Join Date: Jun 2004
Location: Laurel, MD USA
Posts: 6,062
linuxfirefox
Re: Service dead but subsys locked

Hmm, the large multitude of identical recent posts you've done on this topic on other forums (both either penetration or black hat forums)

http://board.blackbuntu.com/showthread.php?tid=749
http://www.hackcommunity.com/Thread-...32406#pid32406

and the content of what you seem to be doing implies this is something a bit under the board. Can you explain more about why you need to make a clone in this way, ie, why are you shoehorning this code to work on a different system this way? If this is some kind of cracking it's in violation of rule 9 of the forum rules of conduct

See Rule 9 of the Fedora Guidelines
http://www.fedoraforum.org/?view=guide
  #7  
Old 8th August 2011, 08:05 PM
bob Offline
Administrator (yeah, back again)
 
Join Date: Jul 2004
Location: Colton, NY; Junction of Heaven & Earth (also Routes 56 & 68).
Age: 69
Posts: 22,170
linuxfirefox
Re: Service dead but subsys locked

I'll trust that Marko's right on his suspicions and close the thread. If Muharem84's intent is NOT cracking, then he can convince Marko by PM that his intentions are valid and Marko can PM me to reopen the thread. Otherwise, Muharem84 should understand that similar threads will put his membership in immediate jeopardy.
__________________
Linux & Beer - That TOTALLY Computes!
Registered Linux User #362651


Don't use any of my solutions on working computers or near small children.
Closed Thread

Tags
dead, locked, service, subsys

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
httpd dead by subsys still locked jazztrump9 Using Fedora 4 27th August 2009 09:15 PM
snort dead but subsys locked Thaidog Security and Privacy 2 20th March 2009 10:05 AM
icecast dead but subsys locked frojd Servers & Networking 0 1st May 2008 11:05 PM


Current GMT-time: 05:14 (Thursday, 23-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Itabirito Photos - Scarsdale Photos - Tullahoma