Update of /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd
In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv22312

Modified Files:
        buildtool.cfg mini_httpd mini_httpds savelog-mini_httpd 
        savelog-mini_httpds 
Log Message:
fix mini_httpd logrotating

Index: savelog-mini_httpds
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd/savelog-mini_httpds,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** savelog-mini_httpds 26 Sep 2006 20:33:31 -0000      1.2
--- savelog-mini_httpds 23 Nov 2006 20:11:12 -0000      1.3
***************
*** 1,3 ****
  #!/bin/sh
  
! savelog -u sh-httpd -g wheel -m 640 -p -c 4 /var/log/mini_httpds.log 
>/dev/null
--- 1,10 ----
  #!/bin/sh
+ # Save daily LOGDEPTH versions of syslogfile
+ LOGDEPTH=4
+ # syslogfile name
+ LOGFILE=/var/log/mini_httpds.log
  
! if [ -f $LOGFILE ]; then
!     savelog -u sh-httpd -g wheel -m 640 -p -c $LOGDEPTH $LOGFILE >/dev/null
!     /etc/init.d/mini_httpds reload >/dev/null
! fi

Index: savelog-mini_httpd
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd/savelog-mini_httpd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** savelog-mini_httpd  15 Sep 2003 12:34:23 -0000      1.1
--- savelog-mini_httpd  23 Nov 2006 20:11:12 -0000      1.2
***************
*** 1,3 ****
  #!/bin/sh
  
! savelog -u sh-httpd -g wheel -m 640 -p -c 4 /var/log/mini_httpd.log >/dev/null
--- 1,10 ----
  #!/bin/sh
+ # Save daily LOGDEPTH versions of syslogfile
+ LOGDEPTH=4
+ # syslogfile name
+ LOGFILE=/var/log/mini_httpd.log
  
! if [ -f $LOGFILE ]; then
!     savelog -u sh-httpd -g wheel -m 640 -p -c $LOGDEPTH $LOGFILE >/dev/null
!     /etc/init.d/mini_httpd reload >/dev/null
! fi

Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd/buildtool.cfg,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** buildtool.cfg       30 Jun 2006 20:17:41 -0000      1.11
--- buildtool.cfg       23 Nov 2006 20:11:12 -0000      1.12
***************
*** 59,63 ****
        <mhttpd>
                        Version  = 1.19
!                       Revision = 2
                
  
--- 59,63 ----
        <mhttpd>
                        Version  = 1.19
!                       Revision = 3
                
  
***************
*** 121,125 ****
        <mhttpds>
                        Version  = 1.19
!                       Revision = 3
  
                        Help <<EOF
--- 121,125 ----
        <mhttpds>
                        Version  = 1.19
!                       Revision = 4
  
                        Help <<EOF

Index: mini_httpds
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd/mini_httpds,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** mini_httpds 2 Apr 2005 16:14:41 -0000       1.3
--- mini_httpds 23 Nov 2006 20:11:12 -0000      1.4
***************
*** 7,32 ****
  case "$1" in
    start)
!     echo -n "Starting mini httpd:"
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpds.pid --exec /usr/sbin/mini_httpds -- -C 
/etc/mini_httpds.conf 2>/dev/null
        echo "."
        ;;
    stop)
!     echo -n "Stopping mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpds.pid
          echo "."
        ;;
! 
    restart)
!     echo -n "Restarting mini httpd"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpds.pid
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpds.pid --exec /usr/sbin/mini_httpds -- -C 
/etc/mini_httpds.conf 2>/dev/null
        echo "."
        ;;
- 
    *)
!       echo "Usage: /etc/init.d/mini_httpds {start|stop|restart}"
        exit 1
  esac
  
  exit 0
- 
--- 7,34 ----
  case "$1" in
    start)
!       echo -n "Starting mini httpd:"
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpds.pid --exec /usr/sbin/mini_httpds -- -C 
/etc/mini_httpds.conf 2>/dev/null
        echo "."
        ;;
    stop)
!       echo -n "Stopping mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpds.pid
          echo "."
        ;;
!   reload)
!       echo -n "Reloading mini httpd:"
!       start-stop-daemon --stop --signal 1 --quiet --pidfile 
/var/run/mini_httpds.pid
!       echo "."
!       ;;
    restart)
!       echo -n "Restarting mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpds.pid
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpds.pid --exec /usr/sbin/mini_httpds -- -C 
/etc/mini_httpds.conf 2>/dev/null
        echo "."
        ;;
    *)
!       echo "Usage: /etc/init.d/mini_httpds {start|stop|reload|restart}"
        exit 1
  esac
  
  exit 0

Index: mini_httpd
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc/apps/mini_httpd/mini_httpd,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** mini_httpd  2 Apr 2005 16:14:41 -0000       1.2
--- mini_httpd  23 Nov 2006 20:11:12 -0000      1.3
***************
*** 7,32 ****
  case "$1" in
    start)
!     echo -n "Starting mini httpd:"
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpd.pid --exec /usr/sbin/mini_httpd -- -C /etc/mini_httpd.conf 
2>/dev/null
        echo "."
        ;;
    stop)
!     echo -n "Stopping mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpd.pid
          echo "."
        ;;
! 
    restart)
!     echo -n "Restarting mini httpd"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpd.pid
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpd.pid --exec /usr/sbin/mini_httpd -- -C /etc/mini_httpd.conf 
2>/dev/null
        echo "."
        ;;
- 
    *)
!       echo "Usage: /etc/init.d/mini_httpd {start|stop|restart}"
        exit 1
  esac
  
  exit 0
- 
--- 7,34 ----
  case "$1" in
    start)
!       echo -n "Starting mini httpd:"
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpd.pid --exec /usr/sbin/mini_httpd -- -C /etc/mini_httpd.conf 
2>/dev/null
        echo "."
        ;;
    stop)
!       echo -n "Stopping mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpd.pid
          echo "."
        ;;
!   reload)
!       echo -n "Reloading mini httpd:"
!       start-stop-daemon --stop --signal 1 --quiet --pidfile 
/var/run/mini_httpd.pid
!       echo "."
!       ;;
    restart)
!       echo -n "Restarting mini httpd:"
        start-stop-daemon --stop --quiet --oknodo --pidfile 
/var/run/mini_httpd.pid
        cd $WWWDIR;start-stop-daemon --start --quiet --pidfile 
/var/run/mini_httpd.pid --exec /usr/sbin/mini_httpd -- -C /etc/mini_httpd.conf 
2>/dev/null
        echo "."
        ;;
    *)
!       echo "Usage: /etc/init.d/mini_httpd {start|stop|reload|restart}"
        exit 1
  esac
  
  exit 0


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to