How can Foglight Agent Manager auto-start on a linux client when the machine is stopped and started?
Click this hyperlink to review the FglAM Install Guide .
To set startup/shutdown scripts for Foglight FglAM client on Linux, following these steps -
a. Create
/etc/rc.d/init.d/start_FGLAM
script, which has following command in it:
/path_to_your_foglight_FGLAM/startup_command
b. Create
/etc/rc.d/init.d/stop_FGLAM
script, which has following command in it:
/path_to_your_foglight_FGLAM/shutdown_command
c. Set run level in/etc/inittab
run level indicates what Operating Mode Linux will startup in.
The most common are run level 3 (full, multi-user mode without GUI interface) and run level 5 (full, multi-user mode with GUI interface)
The setting in the
/etc/inittab
file will read
initdefault=x
where x is the run level.
We will use run level 5 as our example, so set the following in the /etc/inittab file:
initdefault=5
d. Create a symbolic link for startup script in appropriate run level directory, for our example run level 5, directory is
/etc/rc.d/rc5.d
#ln -s /etc/rc.d/init/start_FGLAM S89start_FGLAM
(Note: when a Linux machine starts, it looks at all the S files (essentially, they are links or shortcuts to the actual files) in /etc/rc.d/init and runs them)
e. Create a symbolic link for shutdown script in appropriate run level directory, for our example run level 5, directory is
/etc/rc.d/rc5.d
#ln -s /etc/rc.d/init/stop_FGLAM K89stop_FGLAM
(Note: when a Linux machine shuts down, it looks at all the K files (essentially, they are links or shortcuts to the actual files) in/etc/rc.d/initand runs them)
Note: the run level directory used was for run level 5. if want to use another run level, instead of using rc5.d in steps d. and e., use rcX.d, where X is appropriate run level. For more information on run levels and symbolic links, please see Linux Operating System manual (man) pages.
*************For Centos 7
Click this hyperlink to review the FglAM Install Guide .
To set startup/shutdown scripts for Foglight FglAM client on Linux, following these steps -
a. Create
/etc/rc.d/init.d/start_FGLAM
script, which has following command in it:
/path_to_your_foglight_FGLAM/startup_command
b. Create
/etc/rc.d/init.d/stop_FGLAM
script, which has following command in it:
/path_to_your_foglight_FGLAM/shutdown_command
c. Set run level in/etc/inittab
run level indicates what Operating Mode Linux will startup in.
The most common are run level 3 (full, multi-user mode without GUI interface) and run level 5 (full, multi-user mode with GUI interface)
The setting in the
/etc/inittab
file will read
initdefault=x
where x is the run level.
We will use run level 5 as our example, so set the following in the /etc/inittab file:
initdefault=5
d. Create a symbolic link for startup script in appropriate run level directory, for our example run level 5, directory is
/etc/rc.d/rc5.d
#ln -s /etc/rc.d/init/start_FGLAM S89start_FGLAM
(Note: when a Linux machine starts, it looks at all the S files (essentially, they are links or shortcuts to the
© 2025 Quest Software Inc. ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center