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

Re: POSIXLY_CORRECT and install scripts

On Fri, 03 Jan 2003, Russell Coker wrote:
> On Fri, 3 Jan 2003 04:25, Michael Stone wrote:
> > On Thu, Jan 02, 2003 at 09:51:09PM -0500, Greg Stark wrote:
> > >Hm, it was more subtle than I realized. It's used in some /etc/init.d
> > > scripts and those are often called from maintainer scripts. An example is
> > > postgresql
> >
> > I'd argue that most of those should really use start-stop-daemon rather
> > than su.
> I agree.

So do I... hmm, I know I had some su's around in my packages, I will convert
any that remain to start-stop-daemon.

> Also while we're at it, postinst scripts should not directly start a daemon 
> they should always call the script in /etc/init.d so that if the 

No. They should use invoke-rc.d to call that initscript. They are not to
even run the /etc/init.d script directly.

  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh

Reply to: