[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Skolelinux in Windows Netzwerk



On Thu, Nov 18, 2004 at 04:06:49PM +0100, Markus Lensing wrote:
> C. Gatzemeier wrote:
 <snip/>
> >Ist dieser Server oder der Router ein DHCP Server oder befürchtest du das 
> >evtl. von tienner vergebene IPs sich mit schon vorhandenen statischen 
> >Überschneiden?
> >
> > 
> >
> Es ist ein dhcp-Server. Kann ich daher den dhcp für eth0 irgendwie 
> abschalten??

A trick I use in /etc/init.d/ files:


replace the line

    start)


with

    start)
        echo starting foobar NOT now
	;;
    now)



This way the service foobar is not started during normal start up,
but you can easy start it with `/etc/init.d/foobar now`

The same change as an unified diff

--- dhcp3-server        2004/04/20 17:31:21     1.1
+++ dhcp3-server        2004/04/20 17:33:20
@@ -20,6 +20,9 @@

 case "$1" in
        start)
+               echo "NOW NOT Starting DHCP server: "
+               ;;
+       now)
                echo -n "Starting DHCP server: "
                start-stop-daemon --start --quiet --pidfile $DHCPDPID \
                        --exec /usr/sbin/dhcpd3 -- -q $INTERFACES



Cheers
Geert Stappers

Attachment: signature.asc
Description: Digital signature


Reply to: