<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>44917</bug_id>
          
          <creation_ts>2023-01-13 17:10:27 +0300</creation_ts>
          <short_desc>Неработающий пример в комментариях файла postgresql.service</short_desc>
          <delta_ts>2023-03-20 10:04:04 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>postgresql14-server</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="FelixZ">felix_z</reporter>
          <assigned_to name="Alexei Takaseev">taf</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>at</cc>
    
    <cc>cas</cc>
    
    <cc>crux</cc>
    
    <cc>ender</cc>
    
    <cc>grenka</cc>
    
    <cc>lav</cc>
    
    <cc>ldv</cc>
    
    <cc>mike</cc>
    
    <cc>qa_viy</cc>
    
    <cc>shaba</cc>
    
    <cc>taf</cc>
    
    <cc>viy</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>220123</commentid>
    <comment_count>0</comment_count>
    <who name="FelixZ">felix_z</who>
    <bug_when>2023-01-13 17:10:27 +0300</bug_when>
    <thetext>Обнаружен недочет в документации в пакете postgresql14-server
https://git.altlinux.org/gears/p/postgresql14.git?p=postgresql14.git;a=blob;f=altlinux/postgresql.service;h=dbd5326c8934615e9eda2b27416670afd3e95bfe;hb=9de2974a1e69a36cadb2cdfcdeebf638f5b5f76f
Если прописать так, как рекомендуется в файле:
.include /lib/systemd/system/postgresql.service

[Service]
# Location of database directory
Environment=PGDATA=/home/mydb/pgsql/data

и после запуска сервиса посмотреть его статус, получаем:

#systemctl status postgresql.service
Loaded: bad-settings (Reason: Unit postgresql.service has a bad unit file setting.)
Active: inactive (dead)
systemd[1]: /etc/systemd/system/postgresql.service:1: Assignment outside of section. Ignoring.
Для продолжения нажмите любую клавишу...

Как в примере - не получилось, потому что в Альте systemd больше не поддерживает директиву .include

Предлагаю удалить эти строки из файла, что бы не вводить в заблуждение пользователей пакета.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223029</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2023-03-20 10:04:04 +0300</bug_when>
    <thetext>postgresql15-1C-15.2-alt2 -&gt; sisyphus:

 Fri Mar 03 2023 Alexei Takaseev &lt;taf@altlinux&gt; 15.2-alt2
 - Cleanup postgresql.service (ALT #44917)
 - Set database locale different from system (ALT #43207)
 - Add /etc/sysconfig/postgresql with staring and initializating environment
 - Initialization databases with secure connection methods
 - Mandatory set password for superuser postgres</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>