Changes

From SME Server
Jump to navigationJump to search
845 bytes added ,  23:30, 8 November 2021
Line 132: Line 132:  
systemctl enable postgresql-12
 
systemctl enable postgresql-12
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
 +
Working with systemd - still testing this
 +
 +
db yum_repositories set postgresql12 repository \
 +
  BaseURL https://download.postgresql.org/pub/repos/yum/12/redhat/rhel-7Server-\$basearch/ \
 +
  EnableGroups no \
 +
  GPGCheck yes \
 +
  Name "MongoDB" \
 +
  GPGKey https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG-12 \
 +
  Visible no \
 +
  status disabled
 +
 +
Update yum
 +
signal-event yum-modify
 +
 +
Install the rpms
 +
yum --enablerepo=postgresql12 install postgresql12-server postgresql12-contrib
 +
 +
Set a config key
 +
config set postgresqld service status enabled access private
 +
 +
We will need a file
 +
 +
mkdir -p /usr/lib/systemd/system/postgresqld.service.d
 +
 +
nano /usr/lib/systemd/system/postgresqld.service.d/50koozali.conf
 +
 +
Something like:
 +
 +
[Unit]
 +
After=network.target network.service wan.service
 +
[Install]
 +
WantedBy=sme-server.target
 +
 +
 +
 +
 +
 
----
 
----
 
[[Category:Howto]]
 
[[Category:Howto]]
 
[[Category:Administration]]
 
[[Category:Administration]]

Navigation menu