Auto start Analytics Plus in Linux

Auto start Analytics Plus in Linux

Steps to auto start Analytics Plus in Linux environment:

 

 

1. Open "StartServer.sh" present in <AnalyticsPlus\bin>

    • Add  '#!/bin/sh' as the first line of the code.
    • Add  'cd <location to Analytics/bin>' before the line 'sh run.sh'  ex : cd /home/admin/AnalyticsPlus/bin/

 

2. Open "rc.local" present in <'/etc/'>

    • Make sure that '#!/bin/sh -e' is the first line, if not change it.
    • Add 'sh <path to StartServer.sh modified earlier>' ex : sh /home/admin/AnalyticsPlus/bin/StartServer.sh
    • Add 'exit 0' as the last line.

3. To make sure that etc/rc.local is executable, execute the following

    • sudo chown root /etc/rc.local
    • sudo chmod 755 /etc/rc.local

 

Now to check whether it is working properly execute  'sudo /etc/init.d/rc.local start'.

If it starts then autostart should just work fine when we restart.


                  New to ADSelfService Plus?