[Mono-list] Init script with mono-service
william.ivanski at gmail.com
Wed Nov 19 11:59:02 UTC 2014
Does your application use dlls?
Mine does, and that's why I had to append ".:bin" to the LD_LIBRARY_PATH
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
2014-11-19 9:35 GMT-02:00 Stefano Facchetti - Arcoba Srl <
s.facchetti at arcoba.it>:
> 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..?
> Il 19/11/2014 12:15, William Ivanski ha scritto:
> From the service manpage (http://linux.die.net/man/8/service):
> service runs a System V init script in as predictable environment as
> possible, removing most environment variables and with current working
> directory set to /.
> 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>:
>> 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.
>> 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
>> 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
>> - 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,
>> Mono-list maillist - Mono-list at lists.ximian.com
> Mono-list maillist - Mono-list at lists.ximian.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list