[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-fai
Subject:    Re: Re: Re: package postgresql fail
From:       Michael Tautschnig <tautschn () model ! in ! tum ! de>
Date:       2006-09-11 18:56:38
Message-ID: 20060911185638.GE12456 () l03 ! model
[Download RAW message or body]


> >Ok, I think I've found the reason for your problems: postgresql.postinst 
> uses
> >start-stop-daemon to run the script that runs initdb. But 
> start-stop-daemon is a
> >diverted by fai throughout the installation to keep daemons from 
> starting.
> 
> Is it possible to change to the normal start-stop-daemon with a hook 
> script and if yes, how? 
>

You might be able to do it as follows:

- Remove postgresql from your package_config/<bla>
- add a shell-script in scripts/ somewhat like the following:

#!/bin/sh

/usr/lib/fai/fai-divert -R

$ROOTCMD apt-get install postgresql
$ROOTCMD /etc/init.d/postgresql stop

/usr/lib/fai/fai-divert -a /sbin/init /usr/sbin/liloconfig /usr/sbin/invoke-rc.d
/usr/lib/fai/fai-divert -a /etc/init.d/nis /sbin/start-stop-daemon /usr/sbin/policy-rc.d


HTH,
Michael


["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic