Discussion:
how to configure services using autoyast
Yiping Zhang
2010-11-05 23:22:55 UTC
Permalink
HI,

In my autoyast.xml, I want to enable a number of services like
autofs, snmpd, ntp etc. I have put them in <runlevel> section as
below:

<runlevel xmlns="">
<default>3</default>
<services config:type="list">
<service>
<service_name>autofs</service_name>
<service_start>3 5</service_start>
</service>
<service>
<service_name>ntp</service_name>
<service_start>3 5</service_start>
</service>
<service>
<service_name>snmpd</service_name>
<service_start>3 5</service_start>
</service>
.....
</runlevel>


But after server is installed, chckconfig indicates all these
services are left at off state for all run levels. What did I miss ?

Thanks
--
To unsubscribe, e-mail: opensuse-autoinstall+***@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+***@opensuse.org
Oliver Schweikert
2010-11-08 09:26:16 UTC
Permalink
Post by Yiping Zhang
HI,
In my autoyast.xml, I want to enable a number of services like
autofs, snmpd, ntp etc. I have put them in <runlevel> section as
<runlevel xmlns="">
<default>3</default>
<services config:type="list">
<service>
<service_name>autofs</service_name>
<service_start>3 5</service_start>
</service>
<service>
<service_name>ntp</service_name>
<service_start>3 5</service_start>
</service>
<service>
<service_name>snmpd</service_name>
<service_start>3 5</service_start>
</service>
.....
</runlevel>
But after server is installed, chckconfig indicates all these
services are left at off state for all run levels. What did I miss ?
Thanks
Hello Yiping,

put the following line into each service element:

<enabled config:type="boolean">true</enabled>

Regards,
Oliver
--
Oliver Schweikert
Software Development

HORIBA Europe Automation Division GmbH
Zabergäustr. 3
73765 Neuhausen (Germany)
Tel: +49 7158-933-413
Fax: +49 7158-933-613
Email: ***@horiba.com

Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano
Amtsgericht Stuttgart, HRB 213200
--
To unsubscribe, e-mail: opensuse-autoinstall+***@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+***@opensuse.org
686f6c6d
2010-11-11 10:03:51 UTC
Permalink
Post by Yiping Zhang
HI,
In my autoyast.xml, I want to enable a number of services like
autofs, snmpd, ntp etc. I have put them in <runlevel> section as
As long as the package "yast2-runlevel" is installed, the following
works for me.
This is openSUSE 11.3. All the listed services except sshd will be disabled.

---------- 8< ----------
<!-- services that will be disabled -->
<runlevel>
<default>3</default>
<services config:type="list">
<service>
<service_name>earlyxdm</service_name>
</service>
<service>
<service_name>network-remotefs</service_name>
</service>
<service>
<service_name>rpcbind</service_name>
</service>
<service>
<service_name>splash</service_name>
</service>
<service>
<service_name>splash_early</service_name>
</service>
<!-- sshd does not start by default in 11.2+ -->
<service>
<service_name>sshd</service_name>
<service_start>3 5</service_start>
</service>
</services>
</runlevel>
---------- >8 ----------


tty,
686f6c6d
--
To unsubscribe, e-mail: opensuse-autoinstall+***@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+***@opensuse.org
686f6c6d
2010-11-12 08:49:01 UTC
Permalink
Post by 686f6c6d
HI,
In my autoyast.xml, I want to enable a number of  services like
autofs, snmpd, ntp etc. I have put them in <runlevel> section as
As long as the package "yast2-runlevel" is installed, the following
works for me.
That's it,  I thought I had included yast2-runlevel package in my
installation, but apparently not!  Once I added yast2-runlevel to the
package list, services are enabled properly after installation!
I just wish that autoyast could provide some error message for missing
dependents, rather than just ignore it.
Thanks
Great to see it helped. I often run into this type of problems because
we make heavy use of <remove-packages>. \:


tty,
686f6c6d
--
To unsubscribe, e-mail: opensuse-autoinstall+***@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+***@opensuse.org
Oliver Schweikert
2010-11-11 16:22:00 UTC
Permalink
Thanks, but it did not help.
I looked at schema file
/usr/share/YaST2/schema/autoyast/rng/runlevels.rng, "enabled" tag is
not defined under "service" entry. Only following elements are
service_name
service_start
service_stop
service_status
I also tried adding <service_status>enable</service_status> to all
these services, still no luck.
Any other ideas ?
I was mistaken, it must be

<service_status>enable</service_status>

The ,,enabled''-tag is for inetd services, sorry! :-(

Regards,
Oliver
--
Oliver Schweikert
Software Development

HORIBA Europe Automation Division GmbH
Zabergäustr. 3
73765 Neuhausen (Germany)
Tel: +49 7158-933-413
Fax: +49 7158-933-613
Email: ***@horiba.com

Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano
Amtsgericht Stuttgart, HRB 213200
--
To unsubscribe, e-mail: opensuse-autoinstall+***@opensuse.org
For additional commands, e-mail: opensuse-autoinstall+***@opensuse.org
Loading...