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

Nikki Locke nikki at trumphurst.com
Wed Jun 28 05:30:05 EDT 2006


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  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: 
>  
> #!/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
http://www.trumphurst.com/




More information about the Mono-list mailing list