git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
38fe018
)
- plc_daemon: return failure from exec
author
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 04:27:56 +0000
(
04:27
+0000)
committer
Mark Huang
<mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 04:27:56 +0000
(
04:27
+0000)
plc.d/functions
patch
|
blob
|
history
diff --git
a/plc.d/functions
b/plc.d/functions
index
ef60c38
..
76869d4
100644
(file)
--- a/
plc.d/functions
+++ b/
plc.d/functions
@@
-5,7
+5,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id:
guest.init,v 1.12 2006/04/04 22:09:47
mlhuang Exp $
+# $Id:
functions,v 1.1 2006/04/06 21:51:59
mlhuang Exp $
#
export PATH=/sbin:/bin:/usr/bin:/usr/sbin
#
export PATH=/sbin:/bin:/usr/bin:/usr/sbin
@@
-60,10
+60,13
@@
plc_daemon ()
# And start it up.
(exec -a plc_${base} $*)
# And start it up.
(exec -a plc_${base} $*)
+ ret=$?
if [ -f /var/run/${base}.pid ] ; then
mv /var/run/${base}.pid /var/run/plc_${base}.pid
fi
if [ -f /var/run/${base}.pid ] ; then
mv /var/run/${base}.pid /var/run/plc_${base}.pid
fi
+
+ return $ret
}
# Print IP address of hostname if resolvable
}
# Print IP address of hostname if resolvable