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 <[email protected] <mailto:[email protected]>>:

    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  - [email protected]
    <mailto:[email protected]>
    http://lists.ximian.com/mailman/listinfo/mono-list



_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to