Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need run a c# Windows Forms application (Mono app) on Ubuntu startup, then I trying use Upstart. I run this application fine manually, but when I use the Upstart script, as follow:

description "Indsys Andon"

start on runlevel [2345]
stop on runlevel [016]

setuid nobody
setgid nogroup
console log

     /usr/bin/mono /usr/lib/IndsysAndon/IndsysAndon.exe "$@"
end script

in IndsysAndon.exe.log the error message appears:

A Unhanled Exception : System.TypeInitializationException: An exception was throw
Parameter name: Display

When I use the script as How do I add my mono Program to the startup? , so, in Indsys.exe.log the error messages is:

run-detectors: unable to find an interpreter for /usr/lib/IndsysAndon/IndsysAndon.exe

I don't know rights, but i think that my need is very simple. It's really necessary to use Upstart? I also tried unsuccessfully by rc.local, inserting:

/usr/bin/mono /usr/lib/IndsysAndon/IndsysAndon.exe

Somebody help me, please. Thanks,

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.