Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacement for 'inittab' in WinNT 1

Status
Not open for further replies.

RonyMC

Programmer
Dec 19, 2000
6
JP
In Unix, the /etc/inittab file supplies the script to the boot init daemon in its role as a general process dispatcher.
Processes typically dispatched by boot init are daemons and shells.

I would like to know if there is a corresponding file in WinNT which can be used to start up a process (in my case an exe). Once the process is started, it must be monitored so that any time this process is killed, it shud be restarted AUTOMATICALLY (refer to 'respawn' action for inittab in Unix manual).
Is there such a provision (automatically restarting a killed process) available in WinNT??? Or shud some other method be tried out??
All suggestions welcome. Thanx in advance.
 
it is possible to tell a process that you can't kill it in NT ... don't know how, but i know it's possible ... it's obviously more possible if you are writing it ...

as for the startup, there are a few ways of doing this, most of this is modifying the registry and telling it to start at certain points (search for Run ...) but there are quite a few places you could put it.

I know it's brief, but it's been a long time since i've done this ... I use Unix mostly now :)
 
thanx Jad
My exe is already registered under Run in the registry. But if there was some key under which the 'respawn' funtionality wud work in NT like it does in Unix, life wud be a whole lot simpler. And processes that are registered as Services cannot b killed. I'm looking for an in-between solution.
thanx once again....ur answer was hepful
 
you had a look at it has all the possible 'runme' style start positions ...

i can't find anything in the registry to help when a program is killed ... i have only ever seen it done in programs that detect for kill and allow it (but start a new copy before they die)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top