Vanyak,
what you are talking about here is called a daemon in the UNIX
world. These can be configured to start up automatically, or shut down
automatically whenver your system changes 'modes' (starting up & shutting
down are just 2 of these modes). So you can have different services
configured to run depending on which mode your system is running in.
e.g, mode 1 is single user mode, and is usualy only used for emergency
maintainence
(a windows analogy would be 'safe mode' in windows 95)
mode 3 is usually full multiuser mode
mode 5 is usually full multiuser mode with X
mode 6 is usually shutdown mode.
Depending on what mode you tell your system to enter, it kills the
appropriate services & starts others.
Incidentally, it is very much easier to write a daemon in unix than
it is in NT. (using C/C++ that is). You don't have to worry about a service
control manager or anything like that. Almost anything can act as a daemon,
and you can (and quite a few programs do) just write a program that reads
from stdin, and writes to stdout. When called by inetd all incoming network
traffic is re-routed to stdin on your program, and all data your program
sends to stdout is sent across the network to the remote client.
John.
-----Original Message-----
From: Vinayak Risbud [mailto:vinayak_risbud at asiansonly.net]
Sent: 21 January 2000 11:22
To: ilug at linux.ie
Subject: [ILUG] "NT Service" in Linux
Hi friends,
In NT we have a concept called, "Services", which is basically
an EXE file, which will be automatically started by the OS , while
booting, and the Service will be stopped by the OS while shutting
down ?
Can any body tell me, Is this possible with Linux OS. What is the
Linux Concept , which is parallel to NT Serivces ?
If this is possible, can anybody tell me, where can I find help
about it ?
Thanks in Advance
regards
Vinayak P Risbud
------------------------------------------------------------
asiansINC - Just Can't Get Enough! http://asiansinc.com
Free Hosting! Get yours today -> http://asiansinc.com/hosting.shtml
--
Irish Linux Users' Group: ilug at linux.iehttp://www.linux.ie/mailman/listinfo/ilug for (un)subscription information.
List maintainer: listmaster at linux.ie
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!