Skip to main content
Version: I2023.4.1

Stopping and Starting AtScale Services

You can control individual services and check their status, start and stop all AtScale services, and configure AtScale services to start automatically after system restarts.

Controlling individual services

You can use the atscale_service_control program to control individual services. For example, to manage just the AtScale engine service:

/opt/atscale/bin/atscale_service_control status engine
/opt/atscale/bin/atscale_service_control restart engine

Type /opt/atscale/bin/atscale_service_control for help with this command.

Starting and Stopping AtScale Services Manually

You can start and stop all AtScale services by using the atscale_start and atscale_stop scripts. You can also manage individual services using the atscale_service_control program.

Your AtScale installation has two scripts to conveniently start and stop all AtScale services at once:

/opt/atscale/bin/atscale_start
/opt/atscale/bin/atscale_stop

Starting AtScale Services Automatically on System Restart

Red Hat and CentOS

You can use a service script to start all AtScale services automatically if the server running AtScale is restarted.

  1. Copy the service script to the system's /etc/init.d folder. The script is located in the AtScale home directory, which is /opt/atscale by default.

    mv <Path_to_the_AtScale_home_directory>/bin/atscale_service.init.d /etc/init.d/atscale_service
  2. Register the service.

note

Note: Your user account must be root or have sudo permission to run this command.

chkconfig atscale_service on
  1. Confirm that the service is enabled.

    chkconfig --list | grep atscale

    The chkconfig command should display this output:

    :

    atscale_service 0:off 1:off 2:on 3:on 4:on 5:on 6:off

  2. Modify /etc/systemd/system.conf and update the DefaultLimitNOFILE line to the following:

    DefaultLimitNOFILE=65536

UBUNTU

note

Note: All of the following steps are either done as root, or using the sudo command.

  1. Copy the service script to the system's /etc/init.d folder:

    1. Locate the atscale_service.init.d script in the /opt/atscale/current/bin folder.

    2. Copy the script (using the new atscale_service name) as shown in the example below:

      cp /opt/atscale/current/bin/atscale_service.init.d /etc/init.d/atscale_service
  2. Change the permissions on the file:

    chmod 0755 /etc/init.d/atscale_service
  3. Modify the init.d script to contain Ubuntu specific functionality

    ### BEGIN INIT INFO
    # Provides: atscale_service
    # Required-Start: $all
    # Required-Stop:
    # Default-Start: 2 3 4 5
    # Default-Stop:
    # Short-Description: your description here
    ### END INIT INFO
  4. Create a symlink in the /etc/rc2.d folder

    cd /etc/rc2.d
    ln -s ../etc/init.d/atscale_service
    mv atscale_service S01atscale_service
  5. Enable the service

    update-rc.d atscale_service enable