Clarity

 View Only
  • 1.  Init script for clarity

    Posted Dec 27, 2012 03:47 PM
    Hi all,

    Does anyone have the init script for clarity services to get the clarity services back up and runnign whnever a server gets rebooted.

    If anyone has implemented, can you please share it?


  • 2.  RE: Init script for clarity

    Posted Dec 27, 2012 05:15 PM
    Its just the command line service start command(s) you would need...

    i.e.
    niku start app
    (pre v13)
    service start app
    (v13+)


  • 3.  RE: Init script for clarity

    Posted Dec 28, 2012 02:01 AM
    Say you have the db as a managed service then you should have that as the first item. If not then start with app or beacon.
    If you are using the commands inside a bat file then you would need to use Call if you have more than one item. Otherwise the execution will stop after the first one.

    Eg.


    call niku start db
    call niku start app
    call niku start bg
    call niku start nsa
    call niku start reports
    call niku status all
    pause

    or

    call service start db
    call service start beacon
    call service start app
    call service start bg
    call service start nsa
    (call service start reports)
    call service status all
    pause

    rather than
    niku start all
    or
    service start all

    Then you can see that there was actually an attempt to start each service. The status command at the end will allow you to see that the services were actually started
    Secondly you can specify the order if you are picky about it.
    For shutting down the opposite sequence or just "all"


    Martti K.

    P.S.
    In order to see the results of the status command you need pause.
    If you run these in a scheduled or automated script then you do not need the status and pause commands.


  • 4.  RE: Init script for clarity

    Posted Dec 28, 2012 05:37 AM
    ...and even simpler; if its a Windows server, you can just set the relevant Clarity service(s) to "Automatic" (in the "Services" options under Windows - i.e. Run->services.msc)!


  • 5.  RE: Init script for clarity

    Posted Dec 28, 2012 08:49 AM
    Agreed unless you want to have your services started in sequence and after the server boot sequence has gone far enough.

    Martti K


  • 6.  RE: Init script for clarity

    Posted Mar 19, 2013 12:10 PM
    Does anyone have a linux script that can be used to stop and start services and check for service status?