Bug 22287 - hardcoded chroot path
Summary: hardcoded chroot path
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: postgresql9.0-server (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Denis Smirnov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-14 02:43 MSK by Alex Yustasov
Modified: 2010-11-15 09:46 MSK (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Yustasov 2009-11-14 02:43:47 MSK
Понадобилось перенести базу в другое, отличное от /var/lib, место. оказалось, что стартовые скрипты postresql из /etc/chroot.d совершенно не обращают внимания на то, что написано в /etc/sysconfig/postgresql. в скриптах жестко прописано 
cd /var/lib/pgsql-root. почему не заменить '/var/lib/pgsql-root' на '$PG_CHROOT_DIR'? ну и еще менять ссылку /var/lib/pgsql на правильную.
Comment 1 Denis Smirnov 2010-01-05 09:42:03 MSK
Перевешиваю на более правильное имя пакета
Comment 2 Vladimir V. Kamarzin 2010-11-02 11:11:14 MSK
На postgresql9.0-server.
Comment 3 Vladimir V. Kamarzin 2010-11-03 15:10:46 MSK
Вообще не понятно, зачем сделали именно PG_CHROOT_DIR=путь, было бы честнее сделать boolean-переменную. Не уверен, что буду это фиксить, т.к. сам предпочитаю пускать без чрута.
Comment 4 Repository Robot 2010-11-15 09:46:47 MSK
postgresql9.0-9.0.1-alt4 -> sisyphus:

* Fri Nov 12 2010 Vladimir V. Kamarzin <vvk@altlinux> 9.0.1-alt4
- Initscript:
  + Introduce "service postgresql initdb" and don't run initdb
    automatically.
  + Use SourceIfNotEmpty for sysconf-file sourcing.
  + Start postgres directly (without wrapping around "start_daemon
    --make-pidfile") and with output redirection to separate
    pgstartup.log (Closes: #19337).
  + When chroot mode enabled, adjust symlink /var/lib/pgsql at every
    startup.
- Unhardcode PG_CHROOT_DIR, let users redefine it (Closes: #22287).
- Return back pg_upgrade.