Changeset 44


Ignore:
Timestamp:
09/03/04 12:08:36 (18 years ago)
Author:
bastiaans
Message:

DEBIAN/postinst:

Support toegevoegd voor xinetd

DEBIAN/postrm:

Support toegevoegd voor xinetd

Changelog:

Versie en change toegevoegd

Location:
trunk/pxeconfig
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/pxeconfig/Changelog

    r42 r44  
     10.4.4
     2  - Added support for xinetd in the debian package scripts
     3
    140.4.3
    25  - Added make_deb_pkg.sh utility to make an DEBIAN package
  • trunk/pxeconfig/DEBIAN/postinst

    r40 r44  
    44PORT=6611
    55
    6 update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
    7 
    8 
    96PXE_TEST=`grep $DAEMON /etc/services`
    107
    11 if [ "$PXE_TEST" ]; then
     8if [ ! -z "$PXE_TEST" ]; then
    129  echo "WARNING: $DAEMON already in /etc/services"
    1310else
    1411  echo -e "$DAEMON\t$PORT/tcp\t\t\t# pxe config daemon\n" >> /etc/services
    15   /etc/init.d/inetd reload
    1612fi
    1713
     14if [ -d /etc/xinetd.d ] && [ ! -r /etc/xinetd.d/pxe ]
     15  then
     16    cat <<EOF >/etc/xinetd.d/pxe
     17service beo_pxeconfigd
     18{
     19        disable         = no
     20        socket_type     = stream
     21        protocol        = tcp
     22        user            = root
     23        group           = sys
     24        wait            = no
     25        server          = /usr/sbin/beo_pxeconfigd
     26}
     27EOF
    1828
     29echo -e "service $DAEMON\n{\n\tdisable\t\t= no\n\tsocket_type\t= stream\n\tprotocol\t= tcp\n\tuser\t\t= root\n\tgroup\t\t= sys\n\twait\t\t= no\n\tserver\t\t= /usr/sbin/beo_pxeconfigd\n}" > /etc/xinetd.d/pxe
     30    /etc/init.d/xinetd reload
     31fi
     32
     33if [ -r /etc/inetd.conf ]
     34  then
     35    update-inetd --add "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
     36    /etc/init.d/inetd reload
     37fi
  • trunk/pxeconfig/DEBIAN/postrm

    r40 r44  
    66then
    77  update-inetd --remove "$DAEMON\tstream\ttcp\tnowait\troot.sys\t/usr/sbin/tcpd\t/usr/sbin/$DAEMON"
     8  rm /etc/xinetd.d/pxe
    89  /etc/init.d/inetd reload
     10  /etc/init.d/xinetd reload
    911
    1012  PXE_TEST=`grep $DAEMON /etc/services`
    1113
    12   if [ "$PXE_TEST" ]; then
     14  if [ ! -z "$PXE_TEST" ]; then
    1315    grep -v "$DAEMON" /etc/services > /tmp/services.tmp
    1416    mv /tmp/services.tmp /etc/services
Note: See TracChangeset for help on using the changeset viewer.