[opensuse-packaging] enabling services while installing a package
Hi, we have a WebYaST plugin called "status" which will be installed via an own RPM (yast2-webservice-status). This plugin requires a running service collectd (package collectd). So how is the correct way to enable and start collectd while installing yast2-webservice-status. My first assumption was: File: yast2-webservice-status.spec: PreReq: collectd %post # # enable and start collectd # insserv -f collectd /etc/init.d/collectd start Is this the correct way, or not ? Thank you and greetings Stefan -- ******************************************************************************* Stefan Schubert SUSE LINUX GmbH - Maxfeldstrasse 5 - D-90409 Nuernberg, Germany e-mail: schubi@suse.de ------------------------------------------------------------------------------- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
On Fri, Oct 02, 2009 at 02:23:28PM +0200, Stefan Schubert wrote:
Hi, we have a WebYaST plugin called "status" which will be installed via an own RPM (yast2-webservice-status). This plugin requires a running service collectd (package collectd). So how is the correct way to enable and start collectd while installing yast2-webservice-status. My first assumption was:
File: yast2-webservice-status.spec:
PreReq: collectd
%post # # enable and start collectd # insserv -f collectd /etc/init.d/collectd start
Is this the correct way, or not ?
No. See: http://forgeftp.novell.com/susesdk/docs/SUSE%20Package%20Conventions/spc_rpm... %fillup_and_insserv, option -y Ciao, Marcus -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Marcus Meissner
-
Stefan Schubert