File: basic.cnf.in

package info (click to toggle)
ps-watcher 1.08-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: sh: 2,907; perl: 1,281; makefile: 104
file content (27 lines) | stat: -rw-r--r-- 613 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# $Id: basic.cnf.in,v 1.4 2005/04/04 23:50:58 rockyb Exp $
# We gotta have at least two processes running. Like the OS
# and the ps-watcher program
[.]
  trigger = $count > 1
  action  = echo "ok 1"
  occurs  = first

# Look for my processes
[perl]
  action  = echo "ok 2" || echo "$ps_pat"

[.?]
  trigger = elapsed2secs('$@PS_TIME_VAR@') >= 0
  action  = echo "ok 3"
  occurs  = first

# I'm assuming there is no process with just a single space.
[^ $]
  action  = echo "ok 4"
  occurs  = none

# Test to see if first-trigger works.
[.*]
  trigger = $pid == $$
  action  = echo "ok 5"
  occurs  = first-trigger