Bug 16683 - Сервис перезапускается два раза при апгрейде
Summary: Сервис перезапускается два раза при апгрейде
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: postgresql8.3-server (show other bugs)
Version: unstable
Hardware: all Linux
: P2 normal
Assignee: Michael Bochkaryov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-13 15:51 MSD by Sir Raorn
Modified: 2008-10-17 21:23 MSD (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sir Raorn 2008-08-13 15:51:03 MSD
rpm -q --scripts postgresql8.3-server
...
postinstall scriptlet (through /bin/sh):
/usr/sbin/post_service postgresql
...
LOCKFILE=/var/lib/pgsql-root/var/lib/pgsql/data/postmaster.pid
if [ -e "$LOCKFILE" ]; then
  /sbin/service postgresql stop
  /bin/rm -f $LOCKFILE
  /sbin/service postgresql start
fi

Зачем "динамически линковаться" с /usr/sbin/post_service, если скрипт "статически слинкован" с его "порезаной и патченой копией"?
Comment 1 Michael Bochkaryov 2008-08-14 17:21:29 MSD
Похоже, что такая конструкция попала "по наследству" от более старых версий.

Вряд ли в ближайшие 3-4 недели смогу до пакета добраться, так что даю копию ns, mithraen и thresh - может у кого из них быстрее получится среагировать.
Comment 2 Ivan Fedorov 2008-10-17 21:23:32 MSD
реально закрыто thresh@ в 8.3.4-alt1