Joey Hess wrote:
Guillem Jover wrote:
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.

If you actually try to make a package that uses -exec and restarts its
deamon in the postinst, it doesn't work. Example:


That's interesting. I'm using --exec (and --pidfile) in my rsyslog init script (just like your dictd package), and restarting in postinst seems to work fine here.

Cheers,
Michael

--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to