[Mono-list] go into daemon mode in linux?

Matthias Leonhardt mono at mleo.net
Mon May 7 01:25:06 EDT 2007


Hi monodevels,

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...

thanks for your hints!

kind regards,
Matthias Leonhardt


More information about the Mono-list mailing list