LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-04-2006, 09:01 AM   #1
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Rep: Reputation: 33
Question can't get a daemon to start - says it's already started


I have a program called Simple Signalling Daemon from APC that is supposed to shut down the server when the unit switches to battery power. It used to run fine:
Code:
# /etc/rc.d/init.d/apcssd start 
Starting APC Simple Signalling Daemon: [OK]
It's supposed to start when the server boots up.
For the last while it hasn't been starting, when I try to run it manually I get:
Code:
# /etc/rc.d/init.d/apcssd start
Starting APC Simple Signalling Daemon: Only one copy of ssd may be running at a time [FAILED]
but when I do:
Code:
# /etc/rc.d/init.d/apcssd status
ssd dead but subsys locked
# cat ssd.pid
(empty)
# rm /var/lock/subsys/ssd
rm: remove '/var/lock/subsys/ssd'?: y
# /etc/rc.d/init.d/apcssd status
ssd is stopped
# /etc/rc.d/init.d/apcssd start
Starting APC Simple Signalling Daemon: Only one copy of ssd may be running at a time [FAILED]
and ps aux | grep ssd is empty as well.
So I am pretty sure my ssd daemon is NOT running. but I can't figure out why it won't start. My server gets rebooted about twice/week (due to locking up) so it's not that it needs rebooting. I have Mandrake Multi Network Firewall operating system (kernel 2.4.18-8) and this is a production server. Any ideas?
 
Old 01-04-2006, 09:06 AM   #2
ankscorek
Member
 
Registered: Mar 2003
Distribution: Slackware10.2,SUSE,FC,RHL,Vector Linux,WHAX,PHLAK,bt4,ubuntu,debian,aptosid,backtrack,blackbuntu
Posts: 529

Rep: Reputation: 31
try reinstalling the daemon....
 
Old 01-04-2006, 10:29 AM   #3
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Reinstalled from source (tar.gz) downloaded from APC, same version (2.0.1). Same error. Any other suggestions?
 
Old 01-04-2006, 11:22 AM   #4
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Rep: Reputation: 15
have you checked the file /etc/rc.d/init.d/apcssd for the reason that causes the echo "Starting APC Simple Signalling Daemon: Only one copy of ssd may be running at a time [FAILED]"?
 
Old 01-04-2006, 11:47 AM   #5
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Here is the contents of the apcssd file:

Code:
. /etc/rc.d/init.d/functions

case "$1" in
  start)
        # Start daemons.
        echo -n "Starting APC Simple Signalling Daemon: "
        daemon ssd /etc/ssd.conf
        echo
        touch /var/lock/subsys/ssd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down APC Simple Signalling Daemon: "
        killproc ssd
        echo
        rm -f /var/lock/subsys/ssd
        ;;
  status)
        status ssd
        ;;
  restart|reload)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|restart|reload|status}"
        exit 1
esac

exit 0
I tried to manually type the commands given under "start" but I got the error: bash: daemon: command not found

ssd.conf reads:
Code:
TTY = /dev/ttyS0
MaxBatRT = 300 # five minutes
 
Old 01-05-2006, 01:16 AM   #6
british_76
Member
 
Registered: Dec 2003
Distribution: kubuntu breezy badger
Posts: 30

Rep: Reputation: 15
hi!

this is NOT the area where i have much know how .... but i think, "daemon" is a function defined in /etc/rc.d/init.d/functions. yeah. checked in on mdk 10.1.

the daemon-function checks if the pid-file is there. not its content. please delete the pidfile and retry starting.
 
Old 12-19-2006, 09:29 AM   #7
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
Yeppers, I'm still having this problem. Same error, same everything.

"Service apcssd start
Starting APC Simple Signalling Daemon: Only one copy of ssd may be running at a time [FAILED]"

even though I deleted /var/lock/subsys/ssd

There is no pid file associated with ssd.

It gets hung trying to start /sbin/ssd which is a binary file I can't read with vi. I don't know where it is checking before it gets the error "Only one copy ..."

Please help!!!

Last edited by Avatar; 12-19-2006 at 11:38 AM.
 
Old 12-19-2006, 12:02 PM   #8
Avatar
Member
 
Registered: May 2001
Location: Canada
Distribution: old ones
Posts: 555

Original Poster
Rep: Reputation: 33
WOOHOO!!!! I found it!!!

There was a "hidden" pid file in :
/usr/local/share/ssd/ssd.pid

once I deleted it, my daemon can now start with [OK]

I found it on a russian website that happened to list all the files associated with ssd and their paths.

Thanks for the input
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
HAL daemon cannot be started anymore zerberus Fedora 15 03-16-2007 04:58 PM
make sure you started X before you start Fluxbox?! FiveFlat Debian 3 05-23-2005 10:28 AM
started imap daemon and it crashed my system kwingate Linux - General 0 10-24-2004 01:18 AM
Checking a daemon has started SteveGodfrey Linux - Software 1 06-01-2004 04:33 AM
Daemon started but NOT running with lpc status??? Ruth Linux - General 1 03-12-2001 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration