Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Troubleshoot a service that is starting twice
Thank you for your donation

Thread Closed 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Troubleshoot a service that is starting twice
2nd May, 2015, 02:53 AM
Post: #1
ben_beton Offline
Registered
Posts: 3
Joined: Apr 2015
Reputation: 0
Troubleshoot a service that is starting twice
Hi,

I'm facing a very strange behavior with one service and I hope someone can help me find the cause.

System:
RPi2 with newest xbian release from the installer.

The problem: A self written service is starting a mono application. After the reboot the mono application is running twice. The app itself does not start additional instances and there are no additional startup scripts in rc.local.

when I disable the init.d and start the service manually, it is running fine, only one instance, so I think, the service script is correct.

Then I thought that could habe something to do with the runlevel. I'm in runlevel 2, so I disabled 1, 3, 4, 5 (deleted the symlink) same behavior.

The mono application writes a look file with his pid, to kill it, if needed. This pid is the correct one, the second one starts before the correct pid (pid of this "zombie" is lower)

sometime it woks when using pkill -o process name (kills oldest of these two processes)

I hope its understandable and someone can help me to find the cause, I don't know how to digg deeper into that problem...

thank you, regards, ben
Find all posts by this user
20th May, 2016, 04:23 AM
Post: #2
IriDium Offline
Inquisitor
******
Posts: 2,025
Joined: Jan 2013
Reputation: 170
RE: Troubleshoot a service that is starting twice
A detail of the script would have gotten a speedier reply.

Please read before you post
How to post a log file

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
« Next Oldest | Next Newest »
Thread Closed 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 26th May, 2025, 04:26 AM Powered By MyBB, © 2002-2025 MyBB Group.