Subversion Repositories vgwhois

Rev

Rev 4 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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