How to run exe in mono in the background How to run exe in mono in the background unix unix

How to run exe in mono in the background


how about nohup mono myexe.exe &


If you want to use & then look into outputting the result to a file.

nohup mono program.exe > program.out &

The right way of doing this would be to create a daemon with your linux distro.


You can also run it as an service using this line of code:

mono-service -l:/tmp/myservice.lock ./ServiceDaemon.exe

where -l:LOCKFILE specifies the file to use for locking. When you look into your lock file, you will see the process id. The process id you can use to kill the service, whenever you need to terminate it.

Source: blog.chudinov.net