FAQ Search Today's Posts Mark Forums Read

» Linux Archive
Home
New Posts
Search
FAQ


Go Back   Linux Archive > Debian > Debian dpkg

 
 
LinkBack Thread Tools
 
Old 05-07-2008, 01:36 AM
Joey Hess
 
Default debhelper, start-stop-daemon -exec, and restarting daemons during upgrade

Guillem Jover wrote:
> The test on <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471060#37>
> seems bogus to me, as the original file would have been removed at
> "postinst configure" time, and s-s-d should work then.

It doesn't matter if dictd is copied to dictd.orig as in my example, or
deleted entirely.

start-stop-daemon -exec checks to see if the process it is stopping has
an executable that is the same as the specified filename. On upgrade,
dpkg replaces one dictd executable with the other, so by postinst
configure time it will behave as I describe.

--
see shy jo
 
Old 05-07-2008, 02:24 AM
Guillem Jover
 
Default debhelper, start-stop-daemon -exec, and restarting daemons during upgrade

On Tue, 2008-05-06 at 20:36:00 -0400, Joey Hess wrote:
> Guillem Jover wrote:
> > The test on <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471060#37>
> > seems bogus to me, as the original file would have been removed at
> > "postinst configure" time, and s-s-d should work then.
>
> It doesn't matter if dictd is copied to dictd.orig as in my example, or
> deleted entirely.

It does matter, deleted files are special cased.

regards,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 05-07-2008, 04:00 AM
Guillem Jover
 
Default debhelper, start-stop-daemon -exec, and restarting daemons during upgrade

On Wed, 2008-05-07 at 04:24:31 +0300, Guillem Jover wrote:
> On Tue, 2008-05-06 at 20:36:00 -0400, Joey Hess wrote:
> > Guillem Jover wrote:
> > > The test on <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=471060#37>
> > > seems bogus to me, as the original file would have been removed at
> > > "postinst configure" time, and s-s-d should work then.
> >
> > It doesn't matter if dictd is copied to dictd.orig as in my example, or
> > deleted entirely.
>
> It does matter, deleted files are special cased.

Just to clarify, for upgrades the original file is not directly deleted,
but in shell examples that's the closest we can do to test the
behaviour. Something like this roughly simulates what dpkg would do:

$ s-s-d start dictd
$ cd /usr/sbin
$ cp /bin/ls dictd.new
$ ln dictd dictd.old
$ mv dictd.new dictd
$ rm dict.old
$ s-s-d stop dictd

and this should work on the shell and when done by dpkg.

regards,
guillem


--
To UNSUBSCRIBE, email to debian-dpkg-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 05:30 AM.

VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org