Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 24 Jan 2003 10:35:28 -0000
From:      "Barry Byrne" <barry.byrne@wbtsystems.com>
To:        "Danny Horne" <danny@clifftop.net>, <freebsd-questions@FreeBSD.ORG>
Subject:   RE: Starting DHCPD
Message-ID:  <NCBBIAMNAKDKFJIIGNPKAEJFKMAA.barry.byrne@wbtsystems.com>
In-Reply-To: <14615.192.168.48.232.1043403041.squirrel@officemail.clifftop.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Danny:

Create a script (/usr/local/etc/rc.d/dhcpd.sh something like this:

--script starts below---
case "$1" in
start)
    echo "Starting DHCP Server"
    /usr/sbin/dhcpd
    ;;

stop)
    echo "Stopping DHCP Server"
    killall dhcpd
    ;;

*)
    echo "Usage: $0 {start|stop}"
    exit 1
esac

exit 0
--script ends above---

Make sure it is executable by root, ends in .sh and lives in
/usr/local/etc/rc.d

Cheers,

Barry
--
Barry Byrne, IT Manager,
WBT Systems, Block 2, Harcourt Centre
Harcourt Street, Dublin 2, Ireland

Phone:  +353 1 417 0150
Fax:    +353 1 478 5544
Email:  barry.byrne@wbtsystems.com
Web:    www.wbtsystems.com

> -----Original Message-----
> From: owner-freebsd-questions@FreeBSD.ORG
> [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Danny Horne
> Sent: 24 January 2003 10:11
> To: freebsd-questions@FreeBSD.ORG
> Subject: Starting DHCPD
>
>
> Hi all,
>
> I'm making changes to my network which will require using my own
> DHCP server.
>  It's all set up & ready to go, but I can't find any way of getting it to
> start on boot up.
>
> There's nothing that I can find in /etc/defaults/rc.conf or
> /etc/rc.conf, &
> no startup scripts in /usr/local/etc/rc.d
>
> I've used this DHCP server before (have recently been using a
> different one
> on the network) so I know it can work, but just can't find any way of
> starting it automatically.
>
> Thanks for all replies
>
>
>
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NCBBIAMNAKDKFJIIGNPKAEJFKMAA.barry.byrne>