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

Bradley, Peter pbradley at uwic.ac.uk
Wed Jun 28 06:10:45 EDT 2006

Thanks Nikki.  I was running out of ideas.  (Lee's already said it works
from the command line, I think BTW, but not from a script).

By the way, if you and Lee do get a solution it would be really helpful
to post it somewhere as an example of how to do this in a RH-based

I'll try and keep an eye on how things go to see if I can be of some
help in that regard (although I have no special expertise, so I'm
probably not the best person).  But there have been so many questions
about this, that there definitely should be a document somewhere that
explains, in as disty-neutral way as possible, how to do it.

This is not to belittle the work others have already done, by the way -
especially Robert Jordan who was a huge help to me when I was struggling
with this.


-----Original Message-----
From: mono-list-bounces at lists.ximian.com
[mailto:mono-list-bounces at lists.ximian.com] On Behalf Of Nikki Locke
Sent: 28 June 2006 10:30
To: mono-list at lists.ximian.com
Subject: Re: [Mono-list] SPAM-LOW: Getting a service to start

Lee wrote:
> Thanks for responding.  I'm new to linux and I am using CentOS which I

> believe is based on Redhat. 

I use CentOS too, so maybe I can help.

> The thing that I cannot understand is why the service will not run in
> 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: 
> #!/bin/sh 
> /opt/mono-1.1.15/bin/mono-service /path/to/my/exe 
> ... it does not run. 

OK. Step 1 - from the command line, type in exactly what you have in the

script - i.e.

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

Does it run now?

Nikki Locke, Trumphurst Ltd.      PC & Unix consultancy & programming

Mono-list maillist  -  Mono-list at lists.ximian.com

More information about the Mono-list mailing list