LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-24-2011, 08:39 AM   #1
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Rep: Reputation: 15
problem with init


hello .
I have problem with init program .
I add this config in /etc/init :
Code:
start on runlevel [2345]
start on started mysql
respawn
exec /etc/netbill/netbilld.pl >/dev/null 2>/dev/null
init can start it without any problem but when i force kill this process .
this process killed but not started again .

Note : I deliberately killed this program with a script . and after kill i stoped my script .

this is output of /var/log/message :
Code:
2011-11-24T14:38:18.052060-05:00 localhost init: netbill-daemon main process (10502) killed by KILL signal
2011-11-24T14:38:18.052078-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:18.268503-05:00 localhost init: netbill-daemon main process (10505) killed by KILL signal
2011-11-24T14:38:18.268519-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:18.462474-05:00 localhost init: netbill-daemon main process (10508) killed by KILL signal
2011-11-24T14:38:18.462490-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:18.762308-05:00 localhost init: netbill-daemon main process (10511) killed by KILL signal
2011-11-24T14:38:18.762325-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:19.033068-05:00 localhost init: netbill-daemon main process (10514) killed by KILL signal
2011-11-24T14:38:19.033134-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:19.228407-05:00 localhost init: netbill-daemon main process (10517) killed by KILL signal
2011-11-24T14:38:19.228473-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:19.458219-05:00 localhost init: netbill-daemon main process (10520) killed by KILL signal
2011-11-24T14:38:19.458237-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:19.697274-05:00 localhost init: netbill-daemon main process (10523) killed by KILL signal
2011-11-24T14:38:19.697291-05:00 localhost init: netbill-daemon main process ended, respawning
2011-11-24T14:38:20.214105-05:00 localhost init: netbill-daemon main process (10526) killed by KILL signal
2011-11-24T14:38:20.214121-05:00 localhost init: netbill-daemon respawning too fast, stopped
How can fix this problem ?
sorry for bad English !

Last edited by mah454; 11-24-2011 at 09:02 AM.
 
Old 11-25-2011, 12:59 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 385Reputation: 385Reputation: 385Reputation: 385
Im not sure but maybe it need a lil more time?
Code:
sleep
Code:
2011-11-24T14:38:20.214121-05:00 localhost init: netbill-daemon respawning too fast, stopped
Regards
 
Old 11-26-2011, 12:02 AM   #3
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
How can i fix this problem !?
init do not restart this daemon !
 
Old 11-26-2011, 01:00 AM   #4
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
I have a example :
mingetty is a respawn process :
kill this process with this script :
Code:
while true 
do
pkill -9 mingetty
done
view /var/log/message . and after kill stop this script .
this process (mingetty) after kill do not restart !
you can check :
Code:
ps -A | grep getty
Note : mingetty is in CentOS , Debian have getty

Last edited by mah454; 11-26-2011 at 01:02 AM.
 
Old 11-26-2011, 02:29 AM   #5
mah454
Member
 
Registered: Oct 2009
Location: Iran
Distribution: Debian , Ubuntu , RHEL , CentOS , NetBill
Posts: 134

Original Poster
Rep: Reputation: 15
i fixed this problem
change config to this :

Code:
start on runlevel [2345]
start on started mysql
respawn
respawn 1000 1
exec /etc/netbill/netbilld.pl >/dev/null 2>/dev/null
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 01:16 PM
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 01:51 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-18-2004 11:10 PM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 10:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:51 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