Open topic with navigation

# Install an IDOL Component as a Service on Linux

On Linux operating systems, you can configure a component as a service to allow you to easily start and stop it. You can also configure the service to run when the machine boots. The following procedures describe how to install License Server as a service on Linux.

Note: To use these procedures, you must have `root` permissions.

The procedure that you must use depends on the operating system and boot system type.

- For Linux operating system versions that use systemd (including Centos 7, and Ubuntu version 15.04 and later), see Install a Component as a Service for a systemd Boot System.
- For Linux operating system versions that use System V, see Install a Component as a Service for a System V Boot System.

## Install a Component as a Service for a systemd Boot System

To install an IDOL component as a service

1. Run the appropriate command for your Linux operating system environment to copy the init scripts to your `init.d` directory.

   - Red Hat Enterprise Linux (and Centos)

         cp IDOLInstallDir/scripts/init/systemd/componentname /etc/systemd/system/

   - Debian (including Ubuntu):

         cp IDOLInstallDir/scripts/init/systemd/componentname /lib/systemd/system/

   `componentname` is the name of the init script that you want to use, which is the name of the component executable (without the file extension).

   For other Linux environments, refer to the operating system documentation.

2. Run the following commands to set to appropriate access, owner, and group permissions for the component:

   - Red Hat Enterprise Linux (and Centos)

         chmod 755 /etc/systemd/system/componentname
         chown root /etc/systemd/system/componentname
         chgrp root /etc/systemd/system/componentname

   - Debian (including Ubuntu):

         chmod 755 /lib/systemd/system/componentname
         chown root /lib/systemd/system/componentname
         chgrp root /lib/systemd/system/componentname

   For other Linux environments, refer to the operating system documentation.

   where `componentname` is the name of the component executable that you want to run (without the file extension).

3. (Optional) If you want to start the component when the machine boots, run the following command:

       systemctl enable componentname

## Install a Component as a Service for a System V Boot System

To install an IDOL component as a service

1. Run the following command to copy the init scripts to your `init.d` directory.

       cp IDOLInstallDir/scripts/init/systemv/componentname /etc/init.d/

   where `componentname` is the name of the init script that you want to use, which is the name of the component executable (without the file extension).

2. Run the following commands to set to appropriate access, owner, and group permissions for the component:

       chmod 755 /etc/init.d/componentname
       chown root /etc/init.d/componentname
       chgrp root /etc/init.d/componentname

3. (Optional) If you want to start the component when the machine boots, run the appropriate command for your Linux operating system environment:

   - Red Hat Enterprise Linux (and CentOS):

         chkconfig --add componentname
         chkconfig componentname on

   - Debian (including Ubuntu):

         update-rc.d componentname defaults

   For other Linux environments, refer to the operating system documentation.

© 2016 Hewlett Packard Enterprise Development LP | Send documentation feedback to HPE Close We welcome your comments! To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to AutonomyTPFeedback@hpe.com. Product: Topic Title: Help Topic: Feedback:

_HP_HTML5_bannerTitle.htm