Super Plugins

Super Plugins

Plugins can be chained together.....  A START plugin and a STOP plugin can both be called from within a RESTART plugin. The RESTART plugin becomes a plugin of plugins, also known as a super plugin. Super plugins can also have there own additional task wrappers. Example:

SP_RESTART()
{
  GetVar -pattern "Application" -name APP
  SP_STOP
  Sleep 60
  SP_START
  Task "ps -ef | grep $APP"
}

This could be called using the following Action request template

Action : RESTART
Application: MYAPP

As the RESTART plugin collects and sets the APP variable, APP will be set and therefore exist in the STOP and START plugins.