OpenPKG CVS Repository
  http://cvs.openpkg.org/
  ____________________________________________________________________________

  Server: cvs.openpkg.org                  Name:   Michael van Elst
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   21-Jul-2003 11:49:27
  Branch: HEAD                             Handle: 2003072110492700

  Modified files:
    openpkg-src/portsentry  rc.portsentry

  Log:
    try to signal both daemons even when a signal cannot be sent, return
    ok status only when both daemons are running

  Summary:
    Revision    Changes     Path
    1.14        +6  -3      openpkg-src/portsentry/rc.portsentry
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/portsentry/rc.portsentry
  ============================================================================
  $ cvs diff -u -r1.13 -r1.14 rc.portsentry
  --- openpkg-src/portsentry/rc.portsentry      21 Jul 2003 08:40:41 -0000      1.13
  +++ openpkg-src/portsentry/rc.portsentry      21 Jul 2003 09:49:27 -0000      1.14
  @@ -16,9 +16,12 @@
       portsentry_udp_pidfile="@l_prefix@/var/portsentry/udp.pid"
       portsentry_signal () {
           [ -f $portsentry_tcp_pidfile ] \
  -        && kill -$1 `cat $portsentry_tcp_pidfile` \
  -        && [ -f $portsentry_udp_pidfile ] \
  -        && kill -$1 `cat $portsentry_udp_pidfile`
  +        && kill -$1 `cat $portsentry_tcp_pidfile`
  +        local rc=$?
  +
  +        [ -f $portsentry_udp_pidfile ] \
  +        && kill -$1 `cat $portsentry_udp_pidfile` \
  +        && [ $rc -eq 0 ]
       }
   
   %status -p 200 -u @l_susr@ -o
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to