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

  Server: cvs.openpkg.org                  Name:   Thomas Lotterer
  Root:   /e/openpkg/cvs                   Email:  [EMAIL PROTECTED]
  Module: openpkg-src                      Date:   24-Jul-2003 10:13:04
  Branch: HEAD                             Handle: 2003072409130300

  Modified files:
    openpkg-src/amd         rc.amd

  Log:
    PR#202 run-time check and related issues

  Summary:
    Revision    Changes     Path
    1.12        +5  -5      openpkg-src/amd/rc.amd
  ____________________________________________________________________________

  patch -p0 <<'@@ .'
  Index: openpkg-src/amd/rc.amd
  ============================================================================
  $ cvs diff -u -r1.11 -r1.12 rc.amd
  --- openpkg-src/amd/rc.amd    24 Jul 2003 07:03:11 -0000      1.11
  +++ openpkg-src/amd/rc.amd    24 Jul 2003 08:13:03 -0000      1.12
  @@ -35,7 +35,8 @@
       rcService amd enable yes || exit 0
       rcService amd active no  && exit 0
       amd_signal TERM
  -    sleep 2
  +    sleep 5
  +    rm -f $amd_pidfile 2>/dev/null || true
   
   %restart -u @l_susr@
       rcService amd enable yes || exit 0
  @@ -44,9 +45,8 @@
   
   %reload -u @l_susr@
       rcService amd enable yes || exit 0
  -    if [ -f @l_prefix@/var/amd/amd.pid ]; then
  -        kill -HUP `cat @l_prefix@/var/amd/amd.pid`
  -    fi
  +    rcService amd active no  && exit 0
  +    amd_signal HUP
   
   %daily -u @l_susr@
       rcService amd enable yes || exit 0
  @@ -56,6 +56,6 @@
           -n ${amd_log_numfiles} -s ${amd_log_minsize} -d \
           -z ${amd_log_complevel} -o @l_musr@ -g @l_mgrp@ -m 644 \
           -P "$amd_log_prolog" \
  -        -E "$amd_log_epilog" \
  +        -E "$amd_log_epilog && rc amd restart" \
           @l_prefix@/var/amd/amd.log
   
  @@ .
______________________________________________________________________
The OpenPKG Project                                    www.openpkg.org
CVS Repository Commit List                     [EMAIL PROTECTED]

Reply via email to