2017-09-21 16:15:27 +00:00
committed by Git OBS Bridge
parent 0f2fbd2c27
commit fbfec6a5ae
2 changed files with 5 additions and 4 deletions

View File

@@ -8,9 +8,9 @@ After=network.target
Type=forking
User=postgres
EnvironmentFile=-/etc/sysconfig/postgresql
ExecStart=/usr/lib/postgresql-init start
ExecStop=/usr/lib/postgresql-init stop
ExecReload=/usr/lib/postgresql-init reload
ExecStart=/usr/lib/postgresql-script start
ExecStop=/usr/lib/postgresql-script stop
ExecReload=/usr/lib/postgresql-script reload
# The server might be slow to stop, and that's fine. Don't kill it
SendSIGKILL=no

View File

@@ -41,6 +41,7 @@ Source2: postgresql-firewall
Source3: postgresql-tmpfiles.conf
Source4: postgresql.service
Source5: postgresql-bashprofile
Source6: postgresql-script
%if 0%{?suse_version} > 1100
%define fwdir /etc/sysconfig/SuSEfirewall2.d/services
@@ -215,7 +216,7 @@ install -m755 -d %buildroot/%_tmpfilesdir
install -m644 %{S:3} %buildroot%_tmpfilesdir/postgresql.conf
install -m755 -d %buildroot/usr/lib
install -m755 %{S:0} %buildroot/usr/lib
install -m755 %{S:6} %buildroot/usr/lib
install -m755 -d %buildroot%_unitdir
install -m444 %{S:4} %buildroot%_unitdir