Linux N4Supervisor !/install contents

In the N4Supervisor Niagara-4.2.n/install folder, find the following:

install_common.sh

This script contains constants and functions used by other scripts, including but not limited to add_n4_user.sh and install_service.sh. This script should not be executed. Do not delete or modify the contents of this file in any fashion.

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

add_n4_user.sh

This script is responsible for adding users on this platform to the user group that is eligible to start and stop the Niagara 4 daemon. This process is also available when initially running install.sh but this standalone script permits the addition of users after installation has taken place. This script needs to be executed with elevated permissions using “sudo”.

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

install_service.sh

This script is responsible for installing the Niagara 4 Platform Service, also referred to as “niagarad”. You will need root privileges to successfully run the script. It can be run as a stand-alone installer and does not require or rely on install.sh at all. When run, the script will install (but not start) the platform daemon of that version of Niagara 4, overwriting any other Niagara 4 daemon currently installed on that platform.

This means you can use this script to switch between Niagara 4 installations on your platform. Once completed, you may start the service from the command line or simply reboot. The script relies on niagarad_generic, and as such, might fail to function properly if that file is significantly modified. If deleted, you will be unable to switch the platform daemon between multiple Niagara 4 installations on your machine. Aside from the fact that this script does not start the daemon upon completion, it corresponds to the Install Platform Daemon command available in a Windows environment. For details, see “Installing the platform daemon”.

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

niagarad_generic

This file is a cache of the original code used to generate niagaradctl used by install.sh. The contents of this file are concatenated to niagaradctl at its creation following the generation of platform dependent code during install.sh and install_service.sh runtime. Deletion of this file, or more than trivial modification will prevent you from successfully reinstalling the platform service, i.e. install_service.sh.

Default attributes are: -rwxrwxr-x niagara:niagara

remove_n4_user.sh

This script is responsible for removing users on this platform from the user group that is eligible to start and stop the Niagara 4 daemon. This process is also available when running uninstall.sh but this standalone scripts permits the removal of users without completely uninstalling Niagara 4. This script needs to be executed with elevated permissions using “sudo”.

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