When you issue this command: vmkload_app -S for example: /usr/lib/vmware/bin/vmkload_app -S -i vmktcp /usr/lib/vmware/bin/net-netflow -e vSwitch0 nf-collector1.mycompany.com:4242
When the -S option is used to setup this process to run as a deamon, is this service started up automatically on reboot or do we need to script this command above into some file that is ran on reboots?
Hello beckhamk
every service you want to start automatically at boot-time has to start in a proper startscript. Most startscripts are located in /etc/init.d. For your own extensions you should use the "local"-startscript (link S99local). This script is designed for own commands and should not be changed / overwritten on future upgrades.
To add to DirkW's statement, running something as a daemon, simply means that it runs as a background process, and not in the foreground as an interactive process. That's basically the difference, a daemon runs in the background, simply that you can't directly interact with the process, unless the daemon provides utilities to do so. When you run a command, the command runs and it returns you the results. The command in this case is running in the foreground. So, basically, starting or running a process as a daemon/service or in the background does not automatically set that process to start on boot. As DirkW said, that is done using the init scripts and the local script in particular.
is there somewhere where I can get an example script. We need to make sure this netflow stuff gets started on reboot. thx
What is the start command for your app? Take that command line and add it to the end of /etc/rc.local
-KjB