In this example, since no user is specified, it uses the root user. The executable sample_app starts and stops the application using start and stop as the command line arguments. The executable sample_app_monitor monitors the application and uses all as its command line argument. The agent also monitors the sample_app1 and sample_app2 processes.
Application samba_app2 ( StartProgram = "/usr/sbin/sample_app start" StopProgram = "/usr/sbin/sample_app stop" CleanProgram = "/usr/sbin/sample_app force stop" MonitorProgram = "/usr/local/bin/sample_app_monitor all" MonitorProcesses = { "sample_app1", "sample_app2" } )