- plc_daemon: return failure from exec
authorMark Huang <mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 04:27:56 +0000 (04:27 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Fri, 7 Apr 2006 04:27:56 +0000 (04:27 +0000)
plc.d/functions

index ef60c38..76869d4 100644 (file)
@@ -5,7 +5,7 @@
 # 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
@@ -60,10 +60,13 @@ plc_daemon ()
 
     # 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
+
+    return $ret
 }
 
 # Print IP address of hostname if resolvable