Codebase list ps-watcher / run/0b86fc8e-cde9-4593-b593-0c2939d01d6e/upstream tests / args.cnf
run/0b86fc8e-cde9-4593-b593-0c2939d01d6e/upstream

Tree @run/0b86fc8e-cde9-4593-b593-0c2939d01d6e/upstream (Download .tar.gz)

args.cnf @run/0b86fc8e-cde9-4593-b593-0c2939d01d6e/upstreamraw · history · blame

# Scripts on some OS's don't show as the script name as the command name.
# Rather the name of the interpreter is listed (e.g. bash or perl)
# Here's how you can match against a script.
# Look for my processes: ps-watcher.
[perl]
  trigger = \$args =~ /ps-watcher --log/
  action  = echo "ok 1"
  occurs  = every
# On BSD/OS the name of the script rather than the interpreter is show.
[ps-watcher]
  trigger = \$args =~ /ps-watcher --log/
  action  = echo "ok 1"
  occurs  = every