[Mono-list] Init script with mono-service

William Ivanski william.ivanski at gmail.com
Wed Nov 19 11:59:02 UTC 2014


Hi, Stefano,

Does your application use dlls?

Mine does, and that's why I had to append ".:bin" to the LD_LIBRARY_PATH
environment variable.
Note, "." is for dlls used in console and desktop applications, and "bin"
is for dlls used in ASP.NET applications.

Maybe, when starting with "service", your application can't find some
resources?

William Ivanski

2014-11-19 9:35 GMT-02:00 Stefano Facchetti - Arcoba Srl <
s.facchetti at arcoba.it>:

>  Hi,
> in my init script I not use environment variables but only one local
> variable (ARCLAUNCHER_HOME) and also use always absolute path.
> Can you give me a hint on what I can checking..?
>
> Thanks,
> Stefano.
>
>
> Il 19/11/2014 12:15, William Ivanski ha scritto:
>
> From the service manpage (http://linux.die.net/man/8/service):
>
>  DESCRIPTION
>
> service runs a System V init script in as predictable environment as
> possible, removing most environment variables and with current working
> directory set to /.
> ENVIRONMENT
>
> LANG, TERM
>         The only environment variables passed to the init scripts.
>
>  William Ivanski
>
> 2014-11-19 5:37 GMT-02:00 Stefano Facchetti - Arcoba Srl <
> s.facchetti at arcoba.it>:
>
>> Hi,
>> I'm using:
>>
>> Mono JIT compiler version 3.8.0 (tarball Thu Sep  4 12:22:04 UTC 2014)
>> Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors.
>> www.mono-project.com
>>         TLS:           __thread
>>         SIGSEGV:       altstack
>>         Notifications: epoll
>>         Architecture:  amd64
>>         Disabled:      none
>>         Misc:          softdebug
>>         LLVM:          supported, not enabled.
>>         GC:            sgen
>>
>> on Linux TurnKey core (http://www.turnkeylinux.org/core) based on Debian
>> 7.2 (Wheezy).
>>
>>
>> I developed a windows service and I'm trying to use it with mono-service
>> command.
>> Using command mono-service manually from the shell work well.
>>
>> I've created an init script (in attach) for automatically startup my
>> service at machine startup and I've registred it with following command:
>> update-rc.d myservice defaults
>>
>> If I run a command like "/etc/init.d/myservice start", all work fine
>> while if I run a command like "service myservice start" I have a strange
>> behavior:
>> - cpu load go to 100%
>> - myservice logic not work
>> I not understand the difference of the commands above.
>>
>> When machine starts, I have the same behavior like when I run the command
>> "service myservice start".
>>
>> Can somebody help me?
>>
>> Best regards,
>> Stefano.
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141119/7d747b15/attachment.html>


More information about the Mono-list mailing list