Bug 18251 - При apt-get reinstall запускается сервис если не запущен
Summary: При apt-get reinstall запускается сервис если не запущен
Status: CLOSED NOTABUG
Alias: None
Product: ALT Linux Server
Classification: Distributions
Component: bugs (show other bugs)
Version: snapshot
Hardware: all Linux
: P2 normal
Assignee: Anton V. Boyarshinov
QA Contact: Andrey Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-18 23:57 MSK by Slava Dubrovskiy
Modified: 2008-12-19 13:27 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Slava Dubrovskiy 2008-12-18 23:57:06 MSK
# apt-get reinstall postgresql8.3 postgresql8.3-server postgresql8.3-contrib
Reading Package Lists... Done
Building Dependency Tree... Done
0 upgraded, 0 newly installed, 3 reinstalled, 0 removed and 0 not upgraded.
Need to get 0B/3821kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue? [Y/n]
Committing changes...
Preparing...                                     ################################################################################################### [100%]
1: postgresql8.3                                 ################################################################################################### [ 33%]
2: postgresql8.3-contrib                         ################################################################################################### [ 66%]
3: postgresql8.3-server                          ################################################################################################### [100%]
Service postgresql is not running.[PASSED]
Adjusting environment for postgresql: [ DONE ]
Creating default database: [ DONE ]
Starting postgres service: [ DONE ]
Link postgresql socket: [ DONE ]
Running /usr/lib/rpm/posttrans-filetriggers
Done.

Думаю что если сервис не был запущен, то он не должен запускаться.
Comment 1 Vladimir V. Kamarzin 2008-12-19 08:58:42 MSK
В инитскрипте используется стандартная конструкция
        condrestart)
                if [ -e "$LOCKFILE" ]; then
                        restart
                fi

Видимо оставался старый lockfile.
Comment 2 Slava Dubrovskiy 2008-12-19 11:18:00 MSK
(In reply to comment #1)
> В инитскрипте используется стандартная конструкция
>         condrestart)
>                 if [ -e "$LOCKFILE" ]; then
>                         restart
>                 fi
> 
Видимо оставался старый lockfile.
Вполне возможно. Значит моя ошибка.
 

Comment 3 Ivan Fedorov 2008-12-19 13:27:53 MSK
Ну и главное, reinstall вообще слегка нештатная ситуация :)