/etc/ips.init is in ips 4.0-1build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | #ips#
# The special command macro run by default
option SysInit -my -noself Cols
# Different formats of interest
option Cols -col pid parent user ttyname summary runtime command
option Pack -col pid parent uid gid stat ttyd stdio residentset runtime \
age program -sep 1
option All Cols Nocond
option Servers All -cond Server
option Users All -cond User
option Cmd -col pid command -sep 1
option Env -col pid environment -sep 1
option Files -col pid Files
option Vert -vert -sep 1 -col All
option Cpu Nocond -col pid user summary runtime percentcpu command \
-sep 1 -revsort percentcpu -cond percentcpu -initsleep 2
option Top Cpu -revsort runorder -curses -default cond -active
option Wide -width 999999
option Widerun -colwidth systemtime 12 -colwidth usertime 12 \
-colwidth runtime 12 -colwidth childruntime 12
# Different conditions of interest
option Nocond -default noself noroot my pid user group active top cond
option Tty -cond ttydev.test
option Stop -cond Stop
option Mytty -cond Mytty
# Definitions for related groups of columns
column Run runtime idletime percentcpu
column Regs eip esp
column Sigs signalcatch signalignore signalblock
column Size residentsetsize percentmemory size pageswaps
column Stdio stdin stdout stderr
column Files openfiles Stdio currentdirectory rootdirectory
# All columns
column All pid parentpid uid user gid group \
processgroup ttyprocessgroup \
state flags priority processor threads \
nice priority realtimepriority policy \
systemtime usertime runtime childruntime \
percentcpu runorder \
residentsetsize size percentmemory \
active idletime starttime deadtime age realtimer \
eip esp waitchannel waitsymbol \
pagefaults minorpagefaults majorpagefaults \
pageswaps childpageswaps \
signalcatch signalignore signalblock \
ttyname ttydevice \
openfiles stdin stdout stderr stdio \
currentdirectory rootdirectory executable \
summary program command environment
# Special definition to identify the first user id
expr SysFirstUserId 100
# Other definitions to use in conditions
expr Me (uid == my(uid))
expr Mytty (ttydev == my(ttydev))
expr Server (uid < SysFirstUserId)
expr User !Server
expr Stop (state == 'T')
|