Changeset 232 for branches/samba-3.2.x/examples
- Timestamp:
- May 27, 2009, 9:09:42 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.2.x/examples/perfcounter/perfcountd.init
r133 r232 22 22 PATH=/bin:/usr/bin:/sbin:/usr/sbin 23 23 24 killproc() 24 killproc() 25 25 { 26 26 pid=`ps aux | grep $1 | egrep -v '(grep|perfcountd)' | awk '{print $2}'` 27 if [ "$pid" != "" ]; then27 if [ x"$pid" != "x" ]; then 28 28 kill $pid 29 29 fi 30 30 } 31 31 32 # Start/stop processes 32 # Start/stop processes 33 33 34 case "$1" 34 case "$1" 35 35 in 36 36 start) … … 48 48 status) 49 49 pid=`ps aux | grep perfcount | egrep -v '(grep|perfcountd)' | awk '{print $2}'` 50 if [ "$pid" == "" ]; then50 if [ x"$pid" = "x" ]; then 51 51 echo "Dead!" 52 52 exit 2;
Note:
See TracChangeset
for help on using the changeset viewer.