LinuxQuestions.org
Visit Jeremy's Blog.
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, 09: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 10:02 AM.
 
Old 11-25-2011, 01:59 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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, 01: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, 02: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 02:02 AM.
 
Old 11-26-2011, 03: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07:51 AM
/sbin/init: Kernel panic - not syncing: Attempted to kill init! jalejo08 Linux - Kernel 7 07-02-2009 02:16 PM
kernal panic no init found try passing init option to kernel m2azer Linux - General 3 11-08-2007 02:51 PM
Kernal Panic: No init found. Try passing init= option to kernel raees Linux - General 12 03-19-2004 12:10 AM
error "Kernel panic: No init found. Try passing init= option Anauj0101 Linux - Newbie 3 05-06-2003 11:18 PM

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

All times are GMT -5. The time now is 04:03 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration