Mailinglist Archive: opensuse-packaging (109 mails)

< Previous Next >
Re: [opensuse-packaging] insserving services
  • From: Wolfgang Rosenauer <wolfgang@xxxxxxxxxxxxx>
  • Date: Fri, 26 Oct 2007 21:48:55 +0200
  • Message-id: <472244A7.6020905@xxxxxxxxxxxxx>
Hi,

Jan Engelhardt wrote:

some packages (e.g. cups), after installation, insert their service into
the runlevel, others (e.g. apache2) do not. How is this accomplished in
the %post sections of .spec files?

PreReq: %insserv_prereq
...
%post
%{fillup_and_insserv -f scriptname}
...
%postun
%insserv_cleanup

Packages which are not enabled by default don't have that.

(There are more parameters handling upgrades from SuSE Linux before 8.0
but I don't think you need those)


Wolfgang
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References