[csw-devel] SF.net SVN: gar:[8859] csw/mgar/pkg/syslog_ng/trunk/files/cswsyslog_ng

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Feb 27 13:59:35 CET 2010


Revision: 8859
          http://gar.svn.sourceforge.net/gar/?rev=8859&view=rev
Author:   wahwah
Date:     2010-02-27 12:59:35 +0000 (Sat, 27 Feb 2010)

Log Message:
-----------
syslog_ng: startup script will now exit with exit code zero. Fixes http://www.opencsw.org/bugtrack/view.php?id=4308

Modified Paths:
--------------
    csw/mgar/pkg/syslog_ng/trunk/files/cswsyslog_ng

Modified: csw/mgar/pkg/syslog_ng/trunk/files/cswsyslog_ng
===================================================================
--- csw/mgar/pkg/syslog_ng/trunk/files/cswsyslog_ng	2010-02-27 01:09:37 UTC (rev 8858)
+++ csw/mgar/pkg/syslog_ng/trunk/files/cswsyslog_ng	2010-02-27 12:59:35 UTC (rev 8859)
@@ -38,7 +38,8 @@
   stop)
     if [ -f ${PID_FILE} ]; then
       syspid=`/usr/bin/cat ${PID_FILE}`
-      [ "$syspid" -gt 0 ] && kill -15 $syspid && rm ${PID_FILE}
+      # The -f flag is used because the PID_FILE might be gone.
+      [ "$syspid" -gt 0 ] && kill -15 $syspid && rm -f ${PID_FILE}
     fi
     ;;
   *)
@@ -46,3 +47,6 @@
     exit 1
     ;;
 esac
+
+# Don't exit with the status of the last command.
+exit 0


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list