[Mono-list] Problem installing service

Derek Ekins derek at spathi.com
Mon May 25 12:10:20 EDT 2009


So my service is now up and running.Well sort of.
I actually have two services in the one exe.

                var services = new ServiceBase[]
                   {
                       new Indexer(container, configuration),
                       new Resizer(container, configuration)
                   };
                ServiceBase.Run(services);

However only the Indexer starts up. Is only one service per exe supported?

2009/5/25 Derek Ekins <derek at spathi.com>

> I found it.Turns out it does come with the main mono package - not sure
> why I couldn't find it to start with.
> mono-service2 is actually a shell script that calls into
> lib/mono/2.0/mono-service.exe
>
>
>
> 2009/5/25 Petit Eric <surfzoid at gmail.com>
>
>> I can't remember exactly, but perhap's in mono-tools :
>> http://anonsvn.mono-project.com/viewvc/trunk/
>>
>> also have a look at minimal install :
>> http://mono-project.com/AnonSVN
>>
>> 2009/5/25 Derek Ekins <derek at spathi.com>:
>> > Just looking into mono-service some more.
>> > I have found that I need to run my service in mono-service2 (makes sense
>> it
>> > is in .net 2).
>> > This works fine on my local machine, but on my server there is no
>> > mono-service2.
>> > On my dev box I have a ton of mono packages installed (2.4 from source)
>> > On my server I only have a minimal install - from these
>> > archives http://ftp.novell.com/pub/mono/sources/mono/
>> > mono-2.4.tar.bz2
>> > xsp-2.4.tar.bz2
>> > mod_mono-2.4.tar.bz2
>> > Is mono-service2 in some other archive?
>> >
>> > 2009/5/25 Petit Eric <surfzoid at gmail.com>
>> >>
>> >> 2009/5/24 Derek Ekins <derek at spathi.com>:
>> >> > Thanks for clearing that up.
>> >> > I take it that it is only meant for windows installs then?
>> >>
>> >> Windows work in a differante way, you need to manage some class
>> >> installer and use similare of one of my batch script :
>> >>
>> >>
>> http://clamwinrt.svn.sourceforge.net/viewvc/clamwinrt/ClamWinRT.ConvertedToCs/bin/Debug/
>> >> >
>> >> > 2009/5/24 Robert Jordan <robertj at gmx.net>
>> >> >>
>> >> >> Derek Ekins wrote:
>> >> >> > Hi,
>> >> >> > I am trying to use installutil.exe to install my service.
>> >> >> >
>> >> >> > I am getting the following error and I am not sure what to make of
>> it
>> >> >> > as
>> >> >> > I
>> >> >> > have apps on this server that are using the mentioned classes.
>> >> >> > Any help much appreciated!
>> >> >> >
>> >> >> > root at ip-10-226-103-117:/srv/media-app/service# mono
>> >> >> > /usr/local/lib/mono/2.0/installutil.exe
>> >> >> > mediaapp.monitoring.service.exe
>> >> >> >
>> >> >> > ** (/usr/local/lib/mono/2.0/installutil.exe:1680): WARNING **: The
>> >> >> > class
>> >> >> > System.Collections.Generic.IList`1 could not be loaded, used in
>> >> >> > mscorlib,
>> >> >> > Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
>> >> >> > Stacktrace:
>> >> >>
>> >> >> The error occurs because installutil is compiled only for .NET 1.1.
>> >> >> Anyways, it won't be able to install your service, because there
>> >> >> is no service manager in linux.
>> >> >>
>> >> >> You'll have more luck with mono-service & and a run level script.
>> >> >>
>> >> >> Robert
>> >> >>
>> >> >> _______________________________________________
>> >> >> Mono-list maillist  -  Mono-list at lists.ximian.com
>> >> >> http://lists.ximian.com/mailman/listinfo/mono-list
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > Mono-list maillist  -  Mono-list at lists.ximian.com
>> >> > http://lists.ximian.com/mailman/listinfo/mono-list
>> >> >
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Cordially.
>> >>
>> >> Small Eric Quotations of the days:
>> >>
>> >>
>> ---------------------------------------------------------------------------
>> >> If one day one reproaches you that your work is not a work of
>> >> professional, say you that:
>> >> Amateurs built the arch of Noah, and professionals the Titanic.
>> >>
>> >>
>> ---------------------------------------------------------------------------
>> >>
>> >> Few people are done for independence, it is the privilege of the
>> powerful
>> >> ones.
>> >>
>> >>
>> ---------------------------------------------------------------------------
>> >>
>> >> No key was wounded during the drafting of this message.
>> >> _______________________________________________
>> >> Mono-list maillist  -  Mono-list at lists.ximian.com
>> >> http://lists.ximian.com/mailman/listinfo/mono-list
>> >
>> >
>>
>>
>>
>> --
>>
>> Cordially.
>>
>> Small Eric Quotations of the days:
>>
>> ---------------------------------------------------------------------------
>> If one day one reproaches you that your work is not a work of
>> professional, say you that:
>> Amateurs built the arch of Noah, and professionals the Titanic.
>>
>> ---------------------------------------------------------------------------
>>
>> Few people are done for independence, it is the privilege of the powerful
>> ones.
>>
>> ---------------------------------------------------------------------------
>>
>> No key was wounded during the drafting of this message.
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20090525/245e8bef/attachment-0001.html 


More information about the Mono-list mailing list