Results 1 to 3 of 3

Thread: Starting & Stopping DHCP

  1. #1
    Join Date
    Mar 2007
    Location
    surrey
    Beans
    103
    Distro
    Ubuntu 10.04 Lucid Lynx

    Talking Starting & Stopping DHCP

    Could someone tell me if you can start, stop and restart the DHCP Server on a server from the command line ie....

    For apache you would type in a terminal .....

    sudo /etc/init.d/apache2 restart

    is there a command line for the DHCP Server as i can not find it in the Documentation.

    OR
    is it just the case of typing in

    sudo /etc/init.d/dhcp3 restart

    stab in the dark here thats all.
    Many thanks for your time in this matter

    Keith

  2. #2
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,025
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Starting & Stopping DHCP

    Quote Originally Posted by keiffee30 View Post
    Could someone tell me if you can start, stop and restart the DHCP Server on a server from the command line ie....

    For apache you would type in a terminal .....

    sudo /etc/init.d/apache2 restart

    is there a command line for the DHCP Server as i can not find it in the Documentation.

    OR
    is it just the case of typing in

    sudo /etc/init.d/dhcp3 restart

    stab in the dark here thats all.
    I'd expect it to be something like
    Code:
     /etc/init.d/dhcp3d restart
    or
    Code:
     /etc/init.d/dhcp3-server restart
    you'd find the correct command by looking at filenames in /etc/init.d/

    however, since recently, the recommended way of stopping and starting services would be
    Code:
    service dhcp3-server start  #[or stop, or restart, ...]
    again, the service names can be guessed from|found in /etc/init.d

    don't have an ubuntu dhcp server around here, so can't tell you the exact name

  3. #3
    Join Date
    Mar 2007
    Location
    surrey
    Beans
    103
    Distro
    Ubuntu 10.04 Lucid Lynx

    Red face Re: Starting & Stopping DHCP

    ok thank you for your input. I have had a look in the

    /etc/init.d/.....

    and it dose say dhcp3-server so it looks like i will be using this .


    sudo /etc/init.d/dhcp3-server restart
    or
    sudo /etc/init.d/dhcp3-server start
    or
    sudo /etc/init.d/dhcp3-server stop

    Many thanks for letting me know.
    Many thanks for your time in this matter

    Keith

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •