Heray-Was-Here
Server : nginx/1.30.2
System : Linux elegant-dhawan.198-71-59-75.plesk.page 5.15.0-105-generic #115-Ubuntu SMP Mon Apr 15 09:52:04 UTC 2024 x86_64
User : realtyna_guys ( 10000)
PHP Version : 8.2.31
Disable Function : opcache_get_status
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/lib/dpkg/info/rustbolit.postinst
#!/bin/sh
# DEF-43287: After upgrading the rustbolit binary, kick the
# aibolit-resident service so the new binary takes effect immediately.
# Without this, the old binary stays in memory until the next idle
# stay-alive exit (5 minutes by default) or a reboot, leaving
# customers running the previous version for hours after `apt upgrade`.
#
# Only the service needs restarting — the socket is a kernel listener
# bound to a path; upgrading the rustbolit binary doesn't change it,
# and restarting the socket would propagate a stop to the service via
# `Requires=aibolit-resident.socket`, causing a double restart (or in
# pathological cases an orphaned inactive service).
#
# try-restart is a no-op when the unit isn't loaded, so we ignore
# errors — the aibolit-resident.{service,socket} units are shipped by
# the separate `ai-bolit` package and may not be present on every host.
set -e

case "$1" in
    configure)
        if command -v systemctl >/dev/null 2>&1; then
            systemctl try-restart aibolit-resident.service >/dev/null 2>&1 || true
        fi
        ;;
    abort-upgrade|abort-remove|abort-deconfigure)
        ;;
    *)
        echo "postinst called with unknown argument \`$1'" >&2
        exit 1
        ;;
esac



exit 0

Hry