[maemo-developers] Init script woes

From: Marius Gedminas marius at pov.lt
Date: Tue Feb 5 20:33:14 EET 2008
On Fri, Feb 01, 2008 at 05:58:42PM +0000, Tony Green wrote:
> I wonder if anybody can shed any light on a strange (and annoying) problem I'm 
> having persuading dpkg to install init scripts for a package.
> 
> I have an init script in the right place in my development tree 
> (~/httpd-2.2.8/debian/init.d), hd_installinit is un-commented in 
> ~/httpd-2.2.8/debian/rules and when I manually un-pick the .deb file, 
> data.tar.gz correctly contains ./etc/init.d/httpd.
> 
> But... when I actually install the package, I end up without an init file.
> 
> The problem appears to be somewhere in the configuration phase, as if I unpack 
> the package, I see /etc/init.d/httpd.dpkg-new but when I then configure the 
> package, it disappears. Running with debug and some tracing suggests that 
> it's being deleted by whatever process runs just before my postinst script is 
> called.

Have you solved this problem already?  If not, perhaps this might be
relevant: http://www.davidpashley.com/blog/2008/02/05#confmiss

> This is happening with the latest version of the development environment, but 
> reverting to the OS2007 version, it's also happening there. But the fact that 
> I DID have an init script in place suggests I've somehow managed to get this 
> to work at some stage in my early development work (I forgot to include 
> deletion in the postrm script, so it must have been left there by an earlier 
> attempt.)

It does sound like you stumbled on the exact same feature that's
described in the blog post.

HTH,
Marius Gedminas
-- 
"While preceding your entrance with a grenade is a good tactic in
Quake, it can lead to problems if attempted at work." -- C Hacking
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.maemo.org/pipermail/maemo-developers/attachments/20080205/6ce2cb14/attachment.pgp 
More information about the maemo-developers mailing list