Changeset 9946423 in freewrt


Ignore:
Timestamp:
Jul 3, 2007, 6:39:58 PM (18 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
9f838ab
Parents:
cb6d2db
Message:

stopping didn't always reliably work, use killall tntnet

git-svn-id: svn://www.freewrt.org/trunk/freewrt@3111 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/fwwif
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • package/fwwif/Config.in

    rcb6d2db r9946423  
    99#       select FWRT_COMPILE_TNTNET_WITH_GNUTLS
    1010        select FWRT_COMPILE_TNTNET_WITH_OPENSSL
     11        select FWRT_PACKAGE_MKSH
    1112        select FWRT_PACKAGE_WHAT
    1213        help
  • package/fwwif/Makefile

    rcb6d2db r9946423  
    99PKG_NAME=               fwwif
    1010PKG_VERSION=            20070703
    11 PKG_RELEASE=            3
     11PKG_RELEASE=            4
    1212NO_DISTFILES=           1
    1313
  • package/fwwif/extra/fwwif.conf

    rcb6d2db r9946423  
    66
    77MaxRequestSize                  262144
    8 PidFile                         /var/run/fwwif.pid
     8#PidFile                        /var/run/fwwif.pid
    99Daemon                          1
    1010MinThreads                      5
  • package/fwwif/fwwif.init

    rcb6d2db r9946423  
    1 #!/bin/sh
     1#!/bin/mksh
    22# The FreeWRT Webinterface – Initialisation script
    33# Based in part on /etc/rc from MirOS BSD
     
    3131autostart)
    3232        test x"$fwwif" = x"NO" && exit 0
    33         exec sh $0 start
     33        exec mksh $0 start
    3434        ;;
    3535start)
     
    5757        ;;
    5858autostop|stop)
    59         kill $(cat /var/run/fwwif.pid)
     59        trap '' HUP TERM KILL
     60        killall tntnet
     61        sleep 3
     62        killall tntnet
     63        sleep 3
    6064        ;;
    6165restart)
    62         sh $0 stop
    63         sh $0 start
     66        mksh $0 stop
     67        mksh $0 start
    6468        ;;
    6569version)
Note: See TracChangeset for help on using the changeset viewer.