D
D
Dmitry Zamula2013-11-20 14:54:00
Mono
Dmitry Zamula, 2013-11-20 14:54:00

Autoload in Ubuntu?

I have an ubuntu server and a server program written in C# that runs via mono (mono program.exe).
How can I make sure that this line is entered into the console every time the OS boots? (monoprogram.exe)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
jcmvbkbc, 2013-11-20
@DimkaMind

The simplest option is to put this line in /etc/rc.local

S
Sergei Borisov, 2013-11-21
@risik

but in the right way to make a demon out of it. That is, wrap it in a script in /etc/init.d/, etc. For example, this article describes how to do this for a python script. Everything is exactly the same for your case. Just make a shell script in which mono program.exe will be executed.

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question