LinuxQuestions.org
Help answer threads with 0 replies.
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 03-13-2007, 09:53 AM   #1
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Rep: Reputation: 30
Starting command line arguments at bootup


Hi folks,

I'm building my first DNS/DHCP/NAT server, and it's been going pretty well. I've learned a bunch and thanks to the folks here, it's all starting to come together.

I have a quick question however. I've got my DHCP server configured and handing out addresses. I run the command 'dhcpd -f eth1' and all is well.

How would I go about adding that line to startup, so that I don't have to actually type it into a console window at boot?


Thanks!
 
Old 03-13-2007, 10:30 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
Your distro should have dhcpd set up as a service in /etc/init.d. You can verify this with 'chkconfig --list'. Assuming that it appears in the list, you may then start it immediately with the command 'service dhcpd start', and/or configure it to start automatically in which ever runlevels you want; something like 'chkconfig --level 35 dhcpd on' will start it automatically in runlevels 3 & 5.
man service
man chkconfig
--- rod.
 
Old 03-13-2007, 11:19 AM   #3
Seventh
Member
 
Registered: Dec 2003
Location: Boston, MA
Distribution: Redhat / Debian
Posts: 269

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by theNbomr
Your distro should have dhcpd set up as a service in /etc/init.d. You can verify this with 'chkconfig --list'. Assuming that it appears in the list, you may then start it immediately with the command 'service dhcpd start', and/or configure it to start automatically in which ever runlevels you want; something like 'chkconfig --level 35 dhcpd on' will start it automatically in runlevels 3 & 5.
man service
man chkconfig
--- rod.
Thanks!

I've been reading up as much as I can, the one thing I haven't found is how to add the argument in there for which ethernet interface to use.

Edit: Fedora Core 6, btw.

Last edited by Seventh; 03-13-2007 at 11:39 AM.
 
Old 03-13-2007, 11:36 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,950

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
dhcpd has a configuration file /etc/sysconfig/dhcpd
Add the line
DHCPDARGS=eth1
 
  


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
need some help regarding command line arguments kristam269 Linux - General 1 01-23-2007 10:40 AM
command line arguments nickraj Programming 6 09-11-2006 02:01 PM
Command line arguments?? almagerenia Linux - Newbie 1 09-08-2006 05:05 AM
command line arguments containing ( Lotharster Linux - Newbie 3 01-05-2006 09:43 AM
Help with command line arguments ? synapse Linux - Newbie 2 02-23-2004 03:25 AM


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