Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for the response. Unfortunately, my system (suse 8.1) doesn't have an /etc/rc.config file. It has an /etc/rc.d/rc file, but I looked in it and it doesn't look like the place to put anything. It has a whole series of /etc/rc.d/rc<n>.d/ directories, where <n> is 1,2,...,6, and inside are symlinks to scripts.
yeah, rc.config is for "bsd-style" init scripts. you're using "Sys-V-style" init scripts.
you have a few options, either put it in /etc/init.d/rc.local or whatever SuSE "pro" decides to call it
or if you installed dhcpd from whatever binary package management system that SuSE "pro" uses, it should have put a init file in /etc/init.d/ and all you have to do is make the appropiate links to your /etc/rc#.d/ dirs (or use whatever program that SuSE "pro" wants you to use for all that)
or if you installed it from source, you'll need to write your own init script. If SuSE "pro" is halfway decent they should have provided you with a template or skeleton init script for you to use, otherwise you'll have to either copy and paste one of them or start from scratch.
the easiest thing is to just tack it on the end of your rc.local, or whatever SuSE "pro" calls it...
Okay, now that you've established your contempt for 'SuSE "pro"' for reasons that I don't understand but don't really interest me a whole lot, perhaps you - or someone else less contemptious - wouldn't mind explaining the naming system of the symlinks in the /etc/init.d/rc#.d/ directories. Obviously the # refers to run level, I believe the links inside get executed when it enters that run level. And given that they are all named either S##<appname> or K##<appname>, should I assume that the S's run the <appname> script with a "start" arguement and the K's run the <appname> with a "stop" argument? If so, what are the numbers? The order they execute in? But I notice some use the same numbers and differ only by appname. I hate to just go sticking one in there without knowing what I'm doing. Might break something...
the second number is the order in which it is started... 01 is first, 99 is last.. so for dhcpd you'll want it after your network, and depending on your setup you might want it after services like bind or even tftpd.
things can be on the same number, then they are typically alphebetical
In SuSE 8.1 you create four links:
# ln -s /usr/sbin/rcdhcpd /etc/init.d/rc3.d/S20rcdhcpd
# ln -s /usr/sbin/rcdhcpd /etc/init.d/rc3.d/K05rcdhcpd
# ln -s /usr/sbin/rcdhcpd /etc/init.d/rc5.d/S20rcdhcpd
# ln -s /usr/sbin/rcdhcpd /etc/init.d/rc5.d/K05rcdhcpd
If you don't have a SuSE distribution, these rc#.d directories might have a slightly different path. Redhat's is slightly different. Find them and modify the above links accordingly. You might need to modifiy the numbers I used (05, 20). I picked 20 so it starts after everything else (the splash image was 21 so I picked 20). You generally want to kill things in the opposite order, so I picked 05, before everything else.
These scripts will be called automatically with arguments 'start' for the S## paths when the system boots to runlevels 3 or 5, and with 'stop' for the K## paths as it shutsdown. To get it to work the first time, either reboot, or just manually launch it with:
# rcdhcpd start
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.