Rev 4 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4 | Rev 11 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #!/bin/bash |
1 | #!/bin/bash |
2 | 2 | ||
3 | db_get gwhois/inetd |
3 | db_get vgwhois/inetd |
4 | if [ "$RET" = "true" ]; then |
4 | if [ "$RET" = "true" ]; then |
5 | if [ "$(which update-inetd)" != "" ]; then |
5 | if [ "$(which update-inetd)" != "" ]; then |
6 | update-inetd --add 'whois stream tcp nowait nobody /usr/bin/gwhois gwhois' |
6 | update-inetd --add 'whois stream tcp nowait nobody /usr/bin/vgwhois vgwhois' |
7 | else |
7 | else |
8 | db_input high gwhois/noinetd |
8 | db_input high vgwhois/noinetd |
9 | db_go |
9 | db_go |
10 | fi |
10 | fi |
11 | else |
11 | else |
12 | if [ "$(which update-inetd)" != "" ]; then |
12 | if [ "$(which update-inetd)" != "" ]; then |
13 | update-inetd --pattern gwhois --remove whois 2>&1 >/dev/null |
13 | update-inetd --pattern vgwhois --remove whois 2>&1 >/dev/null |
14 | fi |
14 | fi |
15 | fi |
15 | fi |