Bug 105456 - Configured xinetd service not active.
Summary: Configured xinetd service not active.
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: AutoYaST (show other bugs)
Version: Beta 2
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Lukas Ocilka
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-18 10:41 UTC by Uwe Gansert
Modified: 2005-08-19 09:21 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Uwe Gansert 2005-08-18 10:41:36 UTC
Given from autoinst.xml created by autoyast
...
 <conf>
          <protocol>tcp</protocol>
          <script>rsh</script>
          <server>/usr/sbin/in.rshd</server>
          <service>shell</service>
 </conf>
...

After automatic installation the service is not active:
Extract from /etc/xinetd/rsh
...
service shell
{
#       server_args     = /usr/sbin/in.rshd -L
        disable         = yes
...
}

The yast log tells me:
....
"inetd":$["last_created":0, "netd_conf":[$["protocol":"tcp",
"script":"rsh", "server":"/usr/sbin/in.rshd", "service":false]],
....

Solution: Found in the autoyast.pdf Guide:
Add
 <enabled config:type="boolan">true</enabled>
by hand.
Comment 1 Lukas Ocilka 2005-08-19 08:20:12 UTC
Adding <enabled config:type="boolean">true</enabled> wouldn't help the problem
might be the testing:

If you run a sumple script
--- cut ---
{
    import "Inetd";

   
y2milestone("-------------------------------------------------------------------");
    Inetd::Import($[
        "last_created":0,
        "netd_conf":[$[
            "protocol":"tcp",
            "script":"vnc",
            "server":"/usr/X11R6/bin/vnc_inetd_httpd",
            "service":"vnchttpd3",
        ]],
        "netd_status":0
    ]);

   
y2milestone("-------------------------------------------------------------------");
    Inetd::Write();
   
y2milestone("-------------------------------------------------------------------");
}
--- cut ---
it should work. But it depends on the working directory. If you run it just in
root "/" (chrooted or on the base system) it works, if you run it somewhere
else, it doesn't (because of symbolic ./etc/xinet/...* configurations).

It is because I don't know anything about the current working directory and I
don't know how autoyast runs the autoinstallation.

On the other hand, there was probably an error of missing `return...` from
`maplist` when Import()ing the configuration :) I'll provide a patch in SVN and
let's test it please.
Comment 2 Lukas Ocilka 2005-08-19 08:31:49 UTC
Hmm, nothing to patch, I must have had hallucinations ;)
The srcipt mentioned above works well without any patch, just running it from
the root ( cd /; /sbin/yast script.ycp ).
Comment 3 Lukas Ocilka 2005-08-19 09:21:50 UTC
OK, fixed
replacing the "./etc/xinetd.d/" with "/etc/xinetd.d/"

fixing in SVN, build will follow