[opensuse-autoinstall] how to configure services using autoyast
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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
Yiping Zhang schrieb:
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
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: oliver.schweikert@horiba.com Geschäftsführer: Thomas E. Ehmann, Yuichi Muroga, Takashi Nagano Amtsgericht Stuttgart, HRB 213200 -- To unsubscribe, e-mail: opensuse-autoinstall+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
On Sat, Nov 6, 2010 at 00:22, Yiping Zhang <yiping4698@gmail.com> wrote:
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:
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+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-autoinstall+help@opensuse.org
participants (3)
-
686f6c6d
-
Oliver Schweikert
-
Yiping Zhang