LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-21-2011, 12:31 AM   #1
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Rep: Reputation: 36
How do i disable kudzu without using chkconfig


How do i disable kudzu without using chkconfig?

Code:
/sbin/chkconfig --level 3 kudzu off
Is there any other way of doing it .
for example by modifying parameter of any file.

Basically i want kudzu to be disabled during the first run of the machine after installation.
I have full access to the filesystem without starting the machine(its a virtual machine).

Last edited by pinga123; 02-21-2011 at 12:44 AM.
 
Old 02-21-2011, 12:38 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Are you saying that you want to run it manually?

Last edited by corp769; 02-21-2011 at 12:40 AM.
 
Old 02-21-2011, 12:41 AM   #3
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by corp769 View Post
Are you saying that you want to run it manually?
Actually i want it not to be run during the first run of OS.

I m not sure whether removing it from /init.d is a right option or not?
 
Old 02-21-2011, 12:48 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Something I just thought of you could do man... Create a backup of the init.d file, then remove the original. After you do that, create a script on system startup to copy the backup to the original file position. Input?
 
Old 02-21-2011, 12:59 AM   #5
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by corp769 View Post
Something I just thought of you could do man... Create a backup of the init.d file, then remove the original. After you do that, create a script on system startup to copy the backup to the original file position. Input?
Is init.d a file or folder?
Code:
# find / -name init.d
/etc/init.d
/etc/rc.d/init.d
both of them are directories.
(sorry if its a noob question)
I can see /etc/init.d is a folder .
Did you mean moving the file kudzu from /etc/init.d directory and then pasting it again once the system starts?
 
Old 02-21-2011, 01:01 AM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Copy and recopy, yes.
 
Old 02-21-2011, 01:33 AM   #7
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by corp769 View Post
Copy and recopy, yes.
I did as you said .I modified /etc/rc.sysinit file and added following line at the start of rc.sysinit
Code:
mv /etc/init.d/kudzu /tmp/
but it failed during system initialization with error.
Code:
can't move /etc/init.d/kudzu to /tmp/kudzu read only filesystem.

Last edited by pinga123; 02-21-2011 at 01:37 AM.
 
Old 02-21-2011, 01:35 AM   #8
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
No dude, you have it all wrong....
 
Old 02-21-2011, 01:44 AM   #9
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
Quote:
Originally Posted by pinga123 View Post
I did as you said .I modified /etc/rc.sysinit file and added
Code:
mv /etc/init.d/kudzu /tmp/
but it failed during system initialization with error.
Code:
can't move /etc/init.d/kudzu to /tmp/kudzu read only filesystem.
I didn't say to modify that file. If you read what I wrote, I specifically said what you could do is copy the file to a different location before you start it. If you say I didn't clarify, then I really don't know what to tell you. I am here to help, not to do your work for you. Just giving suggestions.... I would much rather see you come up with something so you can learn, not be taught. As far as what you are trying to do though, access the filesystem before you boot it and copy the kudzu file to another spot. I do not recommend /tmp. Then create a script to copy it back to /etc/init.d after the system starts up. Note I did not say to edit rc.sysinit directly.... Hopefully that will clarify what you would possibly need to do. Good luck!
 
1 members found this post helpful.
Old 02-21-2011, 01:52 AM   #10
pinga123
Member
 
Registered: Sep 2009
Posts: 684
Blog Entries: 2

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by corp769 View Post
I didn't say to modify that file. If you read what I wrote, I specifically said what you could do is copy the file to a different location before you start it. If you say I didn't clarify, then I really don't know what to tell you. I am here to help, not to do your work for you. Just giving suggestions.... I would much rather see you come up with something so you can learn, not be taught. As far as what you are trying to do though, access the filesystem before you boot it and copy the kudzu file to another spot. I do not recommend /tmp. Then create a script to copy it back to /etc/init.d after the system starts up. Note I did not say to edit rc.sysinit directly.... Hopefully that will clarify what you would possibly need to do. Good luck!
It was my mistake to add it at the start of /etc/rc.sysinit file.
However by putting it to an end of file i got the desire effect.

Now if i check the status it says unrecognized service.
I m not sure if that is a right way of doing it.

Code:
# service kudzu status
kudzu: unrecognized service
 
Old 02-21-2011, 02:01 AM   #11
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
That's a start. Have it cp itself back to the original directory on startup via start-up script and you will be good to go.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 01:31 PM
disable supermount/magicdev/kudzu or whatever cbonar Mandriva 2 12-03-2004 09:02 AM
what is kudzu and how do you disable it bobothn Linux - Hardware 3 08-06-2004 10:10 PM
Disable kudzu for printer wswartz Linux - General 2 04-11-2004 01:49 PM
Disable Kudzu? davidmgray Linux - Newbie 7 07-07-2003 10:51 AM


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