Bug#500729: inetutils-inetd: Daemon fails to start/doesn't install proplerly

2008-10-02 Thread Thomas Schwinge
tags 500729 patch
thanks


Hello!

On Tue, Sep 30, 2008 at 09:51:41PM +0200, I wrote:
 $ sudo /etc/init.d/inetutils-inetd start
 grep: /etc/inetd.conf: No such file or directory
 Not starting internet superserver: no services enabled. (warning).

Attached is a patch


 Shouldn't installing this create a `/etc/inetd.conf' file, at least for
 inetd's internal services?


Regards,
 Thomas
--- inetutils-inetd 2008-08-20 12:31:17.0 +0200
+++ /etc/init.d/inetutils-inetd 2008-10-02 10:22:19.118878000 +0200
@@ -23,10 +23,10 @@
 
 check_no_services()
 {
-  if ! grep -q ^[0-9A-Za-z/] /etc/inetd.conf; then
-log_warning_msg Not starting internet superserver: no services enabled.
-exit 0
-  fi
+  grep -q ^[0-9A-Za-z/] /etc/inetd.conf 2 /dev/null  return 0
+  ( cd /etc/inetd.d/  set *  [ x$1 != x\* ] )  return 0
+  log_warning_msg Not starting internet superserver: no services enabled.
+  exit 0
 }
 
 


signature.asc
Description: Digital signature


Bug#500729: inetutils-inetd: Daemon fails to start/doesn't install proplerly

2008-09-30 Thread Thomas Schwinge
Package: inetutils-inetd
Version: 2:1.5.dfsg.1-8


Hello!

This is on a freshly installed Debian GNU/Hurd system.

$ sudo apt-get install inetutils-inetd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
  update-inetd
The following NEW packages will be installed:
  inetutils-inetd update-inetd
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B/97.9kB of archives.
After this operation, 307kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Preconfiguring packages ...
Selecting previously deselected package update-inetd.
(Reading database ... 17805 files and directories currently installed.)
Unpacking update-inetd (from .../update-inetd_4.31_all.deb) ...
Selecting previously deselected package inetutils-inetd.
Unpacking inetutils-inetd (from 
.../inetutils-inetd_2%3a1.5.dfsg.1-8_hurd-i386.deb) ...
Setting up update-inetd (4.31) ...
Setting up inetutils-inetd (2:1.5.dfsg.1-8) ...
grep: /etc/inetd.conf: No such file or directory
Not starting internet superserver: no services enabled. (warning).
$ find /etc/inetd*  
/etc/inetd.d
/etc/inetd.d/wiki
$ cat /etc/inetd.d/wiki
4   stream  tcp nowait  wiki/bin/sh sh -c '~wiki/wiki.update 
21; GIT_DIR=~wiki/wiki/.git git-update-server-info 21'
$ sudo /etc/init.d/inetutils-inetd start
grep: /etc/inetd.conf: No such file or directory
Not starting internet superserver: no services enabled. (warning).

Shouldn't installing this create a `/etc/inetd.conf' file, at least for
inetd's internal services?


Regards,
 Thomas


signature.asc
Description: Digital signature