Re: how stop the dns service?

2004-06-24 Thread martin f krafft
also sprach Felipe Martins [EMAIL PROTECTED] [2004.06.23.2142 +0200]:
 in  RedRat there is command 'service' to start, restart, stop and verify 
 status of services.
 - which command in debian is equivalent?

invoke-rc.d service start|stop|status

 - how can i verify which services are running?

best: ps

 - is it possible to avoid a service being started during boot or
 machine initialization? 

add 'exit 0' to the top of the init.d script, make the script not
executable, or implement a policy-rc.d script that does exactly what
you want.

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`. martin f. krafft [EMAIL PROTECTED]
: :'  :proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!


signature.asc
Description: Digital signature


how stop the dns service?

2004-06-23 Thread Felipe Martins
hello, 
in  RedRat there is command 'service' to start, restart, stop and verify status of services.
- which command in debian is equivalent?
- how can i verify which services are running?
- is it possible to avoid a service being started during boot or machine initialization? 

thanks all.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how stop the dns service?

2004-06-23 Thread Marco Paganini
Hi Felipe,

/etc/init.d/service stop

And you can use update-rc.d instead of chkconfig.

Regards,
Paga

On Wed, Jun 23, 2004 at 04:42:08PM -0300, Felipe Martins wrote:
 hello, 
 in  RedRat there is command 'service' to start, restart, stop and verify 
 status of services.
 - which command in debian is equivalent?
 - how can i verify which services are running?
 - is it possible to avoid a service being started during boot or machine 
 initialization? 
 thanks all.
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 

-- 
Marco Paganini  | UNIX / Linux / Networking
[EMAIL PROTECTED]   | PGP: http://www.paganini.net/pgp/
http://www.paganini.net | Magnus Frater te spectat...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how stop the dns service?

2004-06-23 Thread Ernie McCracken
On Wed, 23 Jun 2004 16:42:08 -0300, Felipe Martins [EMAIL PROTECTED] wrote:
 in  RedRat there is command 'service' to start, restart, stop and verify status of 
 services.
 - which command in debian is equivalent?
 - how can i verify which services are running?
 - is it possible to avoid a service being started during boot or machine 
 initialization?

http://www.oreilly.com/catalog/debian/chapter/book/ch07_03.html

http://www.debian.org/doc/FAQ/ch-customizing.en.html (look at 10.5 and 10.6)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how stop the dns service?

2004-06-23 Thread Debian User
On Wed, Jun 23, 2004 at 04:42:08PM -0300, Felipe Martins wrote:
 hello, 
 in  RedRat there is command 'service' to start, restart, stop and verify 
 status of services.
 - which command in debian is equivalent?
/etc/init.d/servicename start
 - how can i verify which services are running?
netstat -l
This actually lists the sockets and ports that are open on your machine.
I don't know if there is more friendly way to do this.
 - is it possible to avoid a service being started during boot or machine 
 initialization? 
change to the /etc/init.d directory
run
#update-rc -f remove service name
The -f flag means force, otherwise the script will complain about the actual
start-up script still existing. update-rc has sofisticated init level
options, listed in the man-page

 thanks all.
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how stop the dns service?

2004-06-23 Thread Andreas Janssen
Hello

Felipe Martins ([EMAIL PROTECTED]) wrote:

 in  RedRat there is command 'service' to start, restart, stop and
 verify status of services. - which command in debian is equivalent?
 - how can i verify which services are running?
 - is it possible to avoid a service being started during boot or
 machine initialization?

Most services have a script located in /etc/init.d that normally
understands at least the start and stop parameters. Some services are
by default started through the inetd. In that case you can take a look
at /etc/inetd.conf.

If you want to prevent a service from being started, you can remove the
S??servicename link from the directory of the runlevel you want to
change. By default Debian boots into runlevel 2, so you should at least
remove it from /etc/rc2.d. You can also install rcconf, which lets you
select which servies to start.

best regards
Andreas Janssen

-- 
Andreas Janssen [EMAIL PROTECTED]
PGP-Key-ID: 0xDC801674 ICQ #17079270
Registered Linux User #267976
http://www.andreas-janssen.de/debian-tipps.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: how stop the dns service?

2004-06-23 Thread John Hasler
Felipe Martins writes:
 hello, in RedRat there is command 'service' to start, restart, stop and
 verify status of services.
 - which command in debian is equivalent?

The sysvconfig package includes a 'service' command.

 - how can i verify which services are running?

Most Debian initscripts don't implement the 'status' command. Use ps.

 - is it possible to avoid a service being started during boot or machine
   initialization?

Yes.  Change all the 'S' links for that service to 'K' links.  You can do
this with sysvconfig.  Install the sysvconfig package, run sysvconfig as
root, and follow instructions.  Sysvconfig is in Unstable and should be in
Testing by now, but it should install and run fine on Stable.
-- 
John Hasler 
[EMAIL PROTECTED]
Dancing Horse Hill
Elmwood, Wisconsin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]