[Mono-list] Init script with mono-service

Stefano Facchetti - Arcoba Srl s.facchetti at arcoba.it
Wed Nov 19 11:35:25 UTC 2014


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 <mailto: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 <http://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
>     <mailto: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/46764fba/attachment-0001.html>


More information about the Mono-list mailing list