[Mono-list] go into daemon mode in linux?
Adam Tauno Williams
adam at morrison-ind.com
Mon May 7 08:32:53 EDT 2007
> I wrote a program which is a little server process and listens at a udp
> port to serve some things. Momentarily I run this program in linux with
> the command "myprog &".
> Is there any possibility to start the program and it puts itself to
> background? The unix-programs like samba etc. can do this. Some programs
> do this, if one adds the parameter "-d".
> How can this be done with .NET/mono?
> Next thing is to open a locked file in /var/run to get the process id of
> an already running process of the same app...
You want to write a service, and start it with mono-service.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.ximian.com/pipermail/mono-list/attachments/20070507/ddcb500a/attachment.bin
More information about the Mono-list
mailing list