projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d72616d
)
Be less picky about precise name of process in init script.
author
Ben Pfaff
<blp@nicira.com>
Wed, 23 Jul 2008 21:54:19 +0000
(14:54 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Wed, 23 Jul 2008 21:55:04 +0000
(14:55 -0700)
The previous version always printed ERROR because for whatever reason
we were comparing "/usr/sbin/secchan" against "secchan", which of
course failed.
debian/openflow-switch.init
patch
|
blob
|
history
diff --git
a/debian/openflow-switch.init
b/debian/openflow-switch.init
index 74ec2699be6f0f531c9522492873018ac03d2011..2d0ff60f7119bf4efdf110dfd482bc2f5098e4da 100755
(executable)
--- a/
debian/openflow-switch.init
+++ b/
debian/openflow-switch.init
@@
-50,8
+50,14
@@
running_pid()
[ ! -d /proc/$pid ] && return 1
cmd=`cat /proc/$pid/cmdline | tr "\000" "\n"|head -n 1 |cut -d : -f 1`
# Is this the expected child?
- [ "$cmd" != "$name" ] && return 1
- return 0
+ case $cmd in
+ $name|*/$name)
+ return 0
+ ;;
+ *)
+ return 1
+ ;;
+ esac
}
running()