OBS-URL: https://build.opensuse.org/package/show/server:database:postgresql/postgresql12?expand=0&rev=80
This commit is contained in:
parent
79bc144101
commit
fde8e83a71
@ -822,9 +822,7 @@ fi
|
|||||||
# Restart only when we are updating the currently running version
|
# Restart only when we are updating the currently running version
|
||||||
test -x /usr/bin/systemctl &&
|
test -x /usr/bin/systemctl &&
|
||||||
MAINPID=$(/usr/bin/systemctl show postgresql.service --property=MainPID --value) ||:
|
MAINPID=$(/usr/bin/systemctl show postgresql.service --property=MainPID --value) ||:
|
||||||
if test -n "$MAINPID" && test "$MAINPID" -ne 0 &&
|
if test -n "$MAINPID" && test "$MAINPID" -ne 0; then
|
||||||
readlink -n /proc/$MAINPID/exe | grep -Fq " (deleted)"
|
|
||||||
then
|
|
||||||
BIN=$(readlink -n /proc/$MAINPID/exe)
|
BIN=$(readlink -n /proc/$MAINPID/exe)
|
||||||
DIR=$(dirname ${BIN% *})
|
DIR=$(dirname ${BIN% *})
|
||||||
if test "$DIR" = "%pgbindir" -o "$DIR" = "%_bindir"; then
|
if test "$DIR" = "%pgbindir" -o "$DIR" = "%_bindir"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user