git://git.onelab.eu
/
myplc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- plc_daemon: return failure from exec
[myplc.git]
/
plc.d
/
functions
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