From: Mark Huang Date: Fri, 7 Apr 2006 04:27:56 +0000 (+0000) Subject: - plc_daemon: return failure from exec X-Git-Tag: myplc-0_4-rc1~86 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=04c1c045720d5330205f06fd6b100b2b6c9fe84b;p=myplc.git - plc_daemon: return failure from exec --- diff --git a/plc.d/functions b/plc.d/functions index ef60c38..76869d4 100644 --- a/plc.d/functions +++ b/plc.d/functions @@ -5,7 +5,7 @@ # Mark Huang # 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