From 04c1c045720d5330205f06fd6b100b2b6c9fe84b Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Fri, 7 Apr 2006 04:27:56 +0000 Subject: [PATCH] - plc_daemon: return failure from exec --- plc.d/functions | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.45.2