Windows service

Danny Mayer mayer at gis.net
Sat Aug 17 02:05:15 UTC 2002


At 10:08 AM 8/9/02, Jail Worm wrote:

>"David Botham" <dns at botham.net> wrote in message
>news:aiu7vv$fjme$1 at isrv4.isc.org...
> >
> >
> >
> > > -----Original Message-----
> > > From: bind-users-bounce at isc.org [mailto:bind-users-bounce at isc.org] On
> > > Behalf Of Neil
> > > Sent: Thursday, August 08, 2002 5:53 AM
> > > To: comp-protocols-dns-bind at isc.org
> > > Subject: Windows service
> > >
> > >
> > > I am running bind 9.2.1 as a Windows service (on XP), and I can't work
> > > out how to pass it parameters (-c /etc/named.conf)
> >
> > You may want to use the Scheduler.  Setup a shortcut that starts with
> > all the command line options you need.  Then, in the Scheduler, set the
> > shortcut to start at "System Startup".
> >
> > Dave...
> >
> > > If I manually start the service and enter the parameters it works
> > > fine, but if I try and make a permanent change by adding the
> > > parameters to ImagePath in the registry they appear in the service
> > > applet but are ignored by bind.
> >
> >
>
>You can start Bind on Win via command line (so you can use the scheduler)
>like this:
>
>net start "servicename"
>
>Where servicename is the name of the service from the services list.  (I.e.
>Not what you would see with tlist, but what you see in the gui)  The quotes
>are important there.
>
>Given that starting point, you might be able pass command switches to the
>service on startup.  (I have never tried, but it may work.)

No, the net start command interfaces with the service controller and the
only argument it will pass is the name of the service. Command switches
need to be entered in the Services Control Panel/MMC via the properties
menu.

>For the version of Bind I am using, it does not start as a service it if you
>simply use the executable in the command line.  But it does start.  If it
>runs when you boot, but does not run as a service, does that matter to you?

That will depend on your goals.

Danny



More information about the bind-users mailing list