[Mono-list] SPAM-LOW: Getting a service to start automatically

Lee lee at datatrakpos.com
Tue Jun 27 18:00:43 EDT 2006

Hi Peter, 

Thanks for responding.  I'm new to linux and I am using CentOS which I
believe is based on Redhat.

The thing that I cannot understand is why the service will not run in  a
script.  Foget about placing the script inside init.d, the service will not
run in ANY script.

If I run:
$mono-service /path/to/my/exe

The service runs fine as it should.

However, if I create a script such as:


/opt/mono-1.1.15/bin/mono-service /path/to/my/exe

... it does not run.

If I do the same thing with a standard console app, the app starts
regardless if I invoke from commandline or through script.

Thanks again,


> Lee wrote:
> > Hi all,
> >
> > Sorry to beat a dead horse to death, but I cannot get my service to 
> > start at system startup.  I've tried the script that I 
> mentioned below to no avail.
> >   
> I've not really been following this, so if this has been said 
> before, my apologies to the list.
> The script you refer to worked fine for me under SuSE 9.3.  
> I'm not familiar with your distribution, but is it LSB 
> compliant?  Does it have the same procedure for starting 
> services as SuSE does?  I believe Robert's script is 
> LSB-centric.  He will no doubt correct me if I'm wrong.
> If I'm going in the right direction, then you may need to 
> look at how your distribution goes about starting daemons at 
> startup, and modify things in the script to suit.
> If it's any help, I work by putting the calls to mono-service 
> into an ordinary script and calling it manually (as it were) 
> until it starts and stops the service correctly.  Then I copy 
> it to the init.d directory and let the SuSE insserve command 
> do its work.  However I believe that that command is specific 
> to SuSE, so other distributions will vary.
> If you want a more coherent description of what I did, go to 
> http://www.peredur.uklinux.net/msc/ and download the pdf file 
> of my DS.  
> I describe the process on page 54.  You won't want to read 
> any more of it than that unless you suffer very badly from insomnia.
> Again, apologies if this has all already been said.
> Peter

More information about the Mono-list mailing list