LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   customizing my rc2.d (https://www.linuxquestions.org/questions/debian-26/customizing-my-rc2-d-413765/)

divukman 02-10-2006 05:27 AM

customizing my rc2.d
 
I've wanted to ask this for some time, but never actually got to it... well better now then never :)
I want to get rid of anything I don't need in my rc2.d (my default), this is how it looks now...
Code:

# ls S
S10sysklogd          S20inetd                S21nfs-common
S11klogd              S20makedev              S89atd
S18portmap            S20nfs-kernel-server    S89cron
S20dbus              S20resmgr              S99gdm
S20dbus-1            S20ssh                  S99rmnologin
S20dirmngr            S21fam                  S99stop-bootlogd

Do I need nfs ? I don't use it at all ? rmlogin ? I don't think so...
Well the question is, what's essential or what can I do without?

guedellas 02-10-2006 06:43 AM

Are you using X?? Because I think that S99rmnologin is necessary to make login in X. As you have gdm I guess so, so I recommend you not to "update-rc.d -f rmnologin remove". :tisk:

I had some troubles when I decide to clean my rc2.d because I wiped out this service and then an error always was prompted when I tried my login.

If you don't want to share files through your LAN, you can remove nfs services.
If you don't want to RPC a server, you can clean portmap.
If you don't want ssh services (for secure remote access), you can clean ssh.

Probably, the easy way is knowing what services do you want to use.
But you can feel free to experiment with update-rc.d (you know, what happens if I wipe this... :p )

Can't help with the other services.

divukman 02-10-2006 06:57 AM

Actually I don't use update-rc.d, just rename it to start with K...

geden 02-10-2006 03:51 PM

google pebble linux... it's woody pared to the bone..used for wireless access points

guedellas 02-11-2006 02:22 PM

Quote:

Originally Posted by divukman
Actually I don't use update-rc.d, just rename it to start with K...

Well :scratch: AFAIK, SXXname is just a link to an .sh placed in /etc/init.d/. If you change the name to K, this script will be executed also and your daemon will be started. If you don't want this, just remove the link (it's safe, you are not deleting the .sh) Maybe moving it to another name (not equal to S or K, as K means kills) also works.

update-rc.d facilitate you to accomplish this task, because each service should have its begining and its ending.

divukman 02-11-2006 02:43 PM

Quote:

Originally Posted by guedellas
Well :scratch: AFAIK, SXXname is just a link to an .sh placed in /etc/init.d/. If you change the name to K, this script will be executed also and your daemon will be started.

Well, I believe that renaming it to Kxxxx will not start the daemon as K means stop the service... and from what I can see on my system I'm not mistaken... :confused::confused::confused:

guedellas 02-13-2006 01:54 AM

I got your point, and yes, I think you're write. (it made sense for me when I though it, but with your explanation my reasoning is obviously wrong).

thanks pal!

divukman 02-13-2006 03:21 AM

Quote:

Originally Posted by guedellas
I got your point, and yes, I think you're write. (it made sense for me when I though it, but with your explanation my reasoning is obviously wrong).

thanks pal!

Yes, but you are right, service should have it's beginning and ending and therefore using update-rc.d is probably the best option. However renaming is perhaps a good way of determining what you don't need.... and then using update-rc.d. :D


All times are GMT -5. The time now is 10:52 AM.