This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Creating NT services
- To: gnu-win32 at cygnus dot com
- Subject: Creating NT services
- From: Jeremy Garff <jer at x10sion dot com>
- Date: Thu, 20 Nov 1997 10:46:40 -0700 (MST)
I was wondering if it were possible to create a NT service using the
cygwin32 gcc compiler. I have ported a UNIX daemon which was written in
Linux to NT (without a single line of code modification, Kudos to the
cygwin folks). However when I run the program it seems that it must have a
shell open during the entire execution of the program. I am even calling
a fork to spawn a seperate process which I make a session leader, so in
theory (or in UNIX) it detaches from the parents shell, and returns the
prompt, and it does this under the bash shell in NT. However when the
application is run from windows it holds a command shell open. Is there a
way that I can fork/spawn this into the background as a windows NT
service?
Thanks,
Jeremy Garff
jer@x10sion.com
Senior Programmer/Analyst
X10sion Inc.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".