Subversion Repositories vgwhois

Rev

Rev 4 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. #!/bin/bash
  2.  
  3.   db_get vgwhois/inetd
  4.   if [ "$RET" = "true" ]; then
  5.     if [ "$(which update-inetd)" != "" ]; then
  6.       update-inetd --add 'whois         stream  tcp     nowait  nobody  /usr/bin/vgwhois vgwhois'
  7.     else
  8.       db_input high vgwhois/noinetd
  9.       db_go
  10.     fi
  11.   else
  12.     if [ "$(which update-inetd)" != "" ]; then
  13.       update-inetd --pattern vgwhois --remove whois 2>&1 >/dev/null
  14.     fi
  15.   fi
  16.