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.000000000 +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
 }
 
 

Attachment: signature.asc
Description: Digital signature

Reply via email to