LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-04-2008, 03:42 AM   #1
linuxsavar
Member
 
Registered: May 2007
Distribution: slackware
Posts: 34

Rep: Reputation: 15
add and remove rc.* files from start up process


hi all
i have slackware 12.1 on my computer.
i want to add some rc.* files(e.g rc.pgsql) and remove some rc.* files(e.g rc.avahi) from start up process .
How can i do that?
thanks
 
Old 09-04-2008, 04:09 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Pretty much all rc.* files are started from '/etc/rc.d/rc.M'. If you look in there you'll see that it checks each rc.* file listed in rc.M to see if it's executable, if it is, then it executes it. However if it is not in rc.M at all then it will not get executed.

So to remove rc.* files from the startup process make them unexecutable 'chmod a-x rc.avahi'

To add rc.* files to the startup process, if they are listed in rc.M, make them executable 'chmod a+x rc.pgsql', if they are not listed in rc.M, then you can either add them to rc.M (back it up of course), or to rc.local (which is run by rc.M if executable), your choice. Sometimes you must put them in rc.M because it must be started at a certain time, is the time it is started is irrelevant you can put it in rc.local.

Also note that rc.M is for multi-user mode, and rc.S is for single-user mode. rc.S is always executed, but rc.M is only executed when entering multi-user mode (the default).

Last edited by H_TeXMeX_H; 09-04-2008 at 04:11 AM.
 
Old 09-04-2008, 02:24 PM   #3
linuxsavar
Member
 
Registered: May 2007
Distribution: slackware
Posts: 34

Original Poster
Rep: Reputation: 15
thanks for your reply
 
  


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
Start 'Add/Remove' program GUI from command line j_70 Linux - Software 1 02-08-2008 02:59 PM
add/remove software problem-already process running Carunkumar Fedora 15 03-13-2007 11:53 PM
add or remove program says - unable to start due to a cofiguration error sampoo Linux - Software 1 01-28-2007 03:48 AM
Can not add/remove files from Fedora. TechHawk Fedora 1 05-12-2004 10:53 PM
How do i add or remove buttons from the KDE 'start' menu? m15a4 Linux - Software 5 12-22-2003 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:45 PM.

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