Linux N4Supervisor !/bin contents

In the N4Supervisor EC—Net 4.2.n/bin folder, find the following:

n4launcher

This file is the shell script responsible for launching Niagara 4 applications. It is used primarily by the Desktop and Menu entries as a means to automate the creation of a suitable runtime environment (that is, env variables); although, a user could use this script from the command line if they choose.

If this file is deleted, Desktop and Menu shortcuts will no longer work. It is not advised to change the contents of this file.

Default attributes are: -r-xr-x--- niagara:niagara

gradlew

This file is a shell script responsible for downloading, if necessary, and launching gradle to build Niagara 4 modules. It corresponds to the gradlew.bat file in a Windows environment.

Default attributes are: -rwxr-xr-x niagara:niagara

lib*.so

These files are runtime libraries used by Niagara. They correspond to the *.dll files in a Windows environment. Deletion of any of these files will result in Niagara run time failure.

Default attributes are: -rwxr-xr-x niagara:niagara

.niagara

This file sets up the run time environment needed to run any Niagara 4 binary. It will properly initialize several important variables, such as LD_LIBRARY_PATH and NIAGARA_HOME. This script can be sourced at the command line to allow you to launch Niagara 4 binaries, such as wb, from the command line at a later time. Deletion of this file will prevent Desktop and Menu shortcuts from functioning properly, as well as n4launcher and niagaradctl. Do not modify the contents of this file as it is custom generated at install time for Niagara 4.

Default attributes are: -rwxr-xr-x niagara:niagara

niagarad

This file is the niagara daemon, aka platform daemon. It corresponds to the file niagarad.exe in a Windows environment. Do not execute this file manually, as it should only be controlled (e.g, started/stopped) by the script niagaradctl. Deletion of this file will prevent the niagaradctl script from functioning properly and will prevent you from making platform connections to your host in “wb”. Do not delete or modify this file in any way.

Default attributes are: -r-x------ niagara:niagara

niagaradctl

This file is the control script for niagarad. It is used to start, stop, and query as to the status of niagarad. Symbolic links from /etc/init.d and runlevel directories are made to this file at service installation time. This script may be executed by any users who are configured to use niagarad (done at installation time) to manually start, stop, restart or query the niagarad service. Deletion of this file will prevent niagarad from running as a service, and will prevent niagarad from starting at boot time, and stopping at restart/reboot time. Do not delete or modify the contents of this file in any fashion.

Default attributes are: -rwxr-xr-x niagara:niagara

niagaradlog

Executing this script allows you to see any output from niagarad. niagarad is run as a service and therefore his its standard output is redirected to an internal logging service. This script will locate the logs generated by niagarad and print them to the screen. Deletion of this file will prevent you from seeing niagarad output externally from Niagara applications (that is, you'll still be able to see it in “wb”).

Default attributes are: -rwxr-xr-x niagara:niagara

nre

This file is responsible for launching the Niagara Runtime Environment (NRE). It corresponds to the nre.exe file in a windows environment. Deletion of this file will prevent you from being able to query the NRE externally from other Niagara applications, for example for hostid.

Default attributes are: -rwxr-xr-x niagara:niagara

station

This file is responsible from launching Niagara stations on your platform. It corresponds to the station.exe file in a Windows environment. Deletion of this file will prevent you from launching any stations on your local platform, pretty much rendering your N4Supervisor useless.

Default attributes are: -rwxr-xr-x niagara:niagara

test

This file is responsible for running predefined test cases against the NRE. It corresponds to the test.exe file in a Windows environment. This file is not critical, but deletion of this file will prevent you from testing the Framework.

Default attributes are: -rwxr-xr-x niagara:niagara

wb

This file is responsible for launching wb, that is Workbench. It corresponds to the file wb.exe in a Windows environment. Deletion of this file will prevent you from launching wb.

Default attributes are: -rwxr-xr-x niagara:niagara