Installing and uninstalling Netcool Impact Auto Start on UNIX/Linux
Netcool Impact Auto Start allows you to start Impact servers on system startup.
The following procedures describe how to install and uninstall Netcool Impact Auto Start.
root
access. This is because the location where the files are generated and their
final locations is a file system set of directories that non-root users will not have access to add
or edit.Installing Impact Auto Start
To install Netcool Impact Auto Start on UNIX and Linux platforms, use the following steps:
- Open the command line prompt.
- Login as root by typing:
su - root
- Change to the following directory:
IMPACT_HOME/install/startup
- Run the following command:
./install_autostart.sh
- At the prompt, type
Y
- At second prompt, type
Y
to installautostartup
for thejrexec
server.Note: For an Impact GUI server only, there is no prompt to install the JRExec startup.
Configuring the systemcl
service
systemd
and systemcl
in order to further customize the services
if there is a requirement for things to start based on specific dependencies.By default, the install_autostart.sh script will generate and configure the
init.d
service. On systems where init.d
is longer planned to be
used, you can use the following additional instructions to configure the systemcl
service:
-
Navigate to the staging directory /run/systemd/generator.late and locate the newly created *.service files (nci.service, ncigui.service and ncijrexec.service).
If Impact JRExec server was not selected for auto start, then you will not see the ncijrexec.service file being generated.
-
Edit the *.service files (nci.service, ncigui.service and ncijrexec.service):
-
Locate the
[Service]
section in each file and add the following two lines, replacing the valuesImpactuser
andImpactgroup
with the actual values of the ID that installed Impact on the system (as a minimum, define theUser
entry.):User=Impactuser Group=Impactgroup
-
Add the following to the bottom of the files (and customize as needed). In most cases, you will want to use the
multi-user.target
, instead ofdefault.target
:[Install] WantedBy=multi-user.target #WantedBy=default.target
-
At this point you can add any other additional customization, for example to the
[Unit]
section, if you have any specific requirements such as:only allow start if something else has taken place
. Refer tosystemd
andsystemctl
documentation for details of usage and customization.
-
-
Copy the newly updated *.service files (nci.service, ncigui.service and ncijrexec.service) to the /etc/systemd/system directory.
-
Enable the services using the following command for each of these new files (nci.service, ncigui.service and ncijrexec.service):
Note:
systemctl
should be used here:systemctl enable <servicename>
For example:
systemctl enable nci.service
or
systemctl daemon-reload
Note:
deamon-reload
is needed when the service file is edited and needs to be reloaded (alternatively, use disable and enable). -
Change the file properties for each of the files that will be used to start and stop the services. Make the files executable using the
chmod
command:chmod 755 /etc/rc.d/init.d/nci*
The above command will make the nci, ncigui and ncijrexec scripts executable, allowing
systemctl
to execute the logic on behalf of the Impact user. -
Start the services using the following command for each of the new services (nci.service, ncigui.service and ncijrexec.service):
systemctl start <service>
For example:
systemctl start nci.service
-
To get the status of the services, use the following command for each of the new services (nci.service, ncigui.service and ncijrexec.service):
systemctl status <service>
For example:
systemctl status nci.service
-
To stop the services, use the following command for each of the new services (nci, ncigui and ncijrexec):
systemctl stop <service>
For example:
systemctl stop nci.service
Note: The services might not stop. It depends on the dependencies and customization used in the nci*.service files. Refer to thesystemd
andsystemctl
documentation for your system. -
To disable the services, use the following command for each of the new services (nci.service, ncigui.service and ncijrexec.service):
systemctl disable <service>
For example:
systemctl disable nci.service
/etc/init.d
startup
services for your Impact/GUI/JRExec services, then before starting for the first time using
systemclt
, make sure you stop the services using init.d
. You
should then be able to start using systemcl
commands.When using the
uninstall_autostart script to uninstall the services and you are using
systemctl
, make sure to stop the services and then issue the systemctl
disable
command for each of the services. The uninstall_autostart
script will automatically remove the services entries from the /etc/rc.d/init.d
and etct/init.d directories, as well as, the staging directory
/run/systemd/generator.late, but will not be removed from the
/etc/systemd/system directory (because those were manually copied). If the
services were disabled and the nci* files were removed from
/etc/rc.d/init.d, then the files in /etc/systemd/system
will not be usable.
Uninstalling Impact Auto Start
To uninstall Netcool Impact Auto Start from UNIX and Linux platforms, use the following steps:
- Open the command line prompt.
- Login as root by typing:
su - root
- Change to the following directory:
IMPACT_HOME/install/startup
- Run the following command:
./uninstall_autostart.sh
- At the prompt, type
Y