[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Starting Daemons - Wiki page?



On Fri, 2005-04-15 at 07:26 -0700, Toshio Kuratomi wrote:
> On Fri, Apr 15, 2005 at 04:52:17AM -0700, Michael Peters wrote:
> > Is there a wiki page that describes the proper procedure for staring a
> > daemon in a %post script?
> >
> I've just started this page::
>   http://www.fedoraproject.org/wiki/ScriptletSnippets
> 
> Feel free to add to the Services section.

This is why I ask -
I'm writing a spec file for a package to hopefully get into livna.
I started with the vendors spec file for their rpm.

A feedback comment I received is that it isn't a good idea to start the
service from the %post scriplet, as it can cause problems with
installers.

What was suggested is that I look at what the openssh-server script
does. It does not start the service, it only adds it to the chkconfig
system so it is configured to start at next system boot.

Here is the message regarding starting of service:

---
* In general, it's a bad idea to start services in the %post section.  
If the RPM is being installed by the Fedora installer, this can cause 
problems.  Take a look, for instance, at the 'openssh-server' or 
'xinetd' postinstall scripts:

  rpm -q --scripts openssh-server
  rpm -q --scripts xinetd
---

That makes sense to me, is that what should be done with packages that contain a service?
If yes, and there is a consensus, should it be part of the wiki (probably on the page ScriptletSnippets)?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]