When libapache2-mod-php7.3 is updated, Apache (systemctl service "apache2") does not get restarted automatically.
I would expect Apache to be restarted automatically after the package update.
Example update session (via cron-apt):
Feb 18 04:54:05 glimmer cron-apt: The following packages will be upgraded:
Feb 18 04:54:05 glimmer cron-apt: libapache2-mod-php7.3 libssl1.1 openssl php7.3-bcmath php7.3-cli
Feb 18 04:54:05 glimmer cron-apt: php7.3-common php7.3-curl php7.3-gd php7.3-intl php7.3-json php7.3-mbstring
Feb 18 04:54:05 glimmer cron-apt: php7.3-mysql php7.3-opcache php7.3-readline php7.3-soap php7.3-sqlite3
Feb 18 04:54:05 glimmer cron-apt: php7.3-xml php7.3-xmlrpc php7.3-zip
Feb 18 04:54:05 glimmer cron-apt: apt-listchanges: Reading changelogs...
Feb 18 04:54:05 glimmer cron-apt: apt-listchanges: Changelogs
--
Feb 18 04:54:05 glimmer cron-apt: Unpacking php7.3-gd (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../13-php7.3-curl_7.3.27-1~deb10u1_amd64.deb ...#015
Feb 18 04:54:05 glimmer cron-apt: Unpacking php7.3-curl (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../14-php7.3-bcmath_7.3.27-1~deb10u1_amd64.deb ...#015
Feb 18 04:54:05 glimmer cron-apt: Unpacking php7.3-bcmath (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../15-libapache2-mod-php7.3_7.3.27-1~deb10u1_amd64.deb ...#015
Feb 18 04:54:05 glimmer cron-apt: Unpacking libapache2-mod-php7.3 (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../16-php7.3-cli_7.3.27-1~deb10u1_amd64.deb ...#015
Feb 18 04:54:05 glimmer cron-apt: Unpacking php7.3-cli (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../17-php7.3-common_7.3.27-1~deb10u1_amd64.deb ...#015
Feb 18 04:54:05 glimmer cron-apt: Unpacking php7.3-common (7.3.27-1~deb10u1) over (7.3.19-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Preparing to unpack .../18-openssl_1.1.1d-0+deb10u5_amd64.deb ...#015
--
Feb 18 04:54:05 glimmer cron-apt: Setting up php7.3-sqlite3 (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Setting up php7.3-mbstring (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Setting up php7.3-json (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Setting up php7.3-readline (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Setting up php7.3-cli (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: Setting up libapache2-mod-php7.3 (7.3.27-1~deb10u1) ...#015
Feb 18 04:54:05 glimmer cron-apt: libapache2-mod-php7.3: not switching MPM - already enabled#015
Feb 18 04:54:05 glimmer cron-apt: Processing triggers for libc-bin (2.28-10) ...#015
Feb 18 04:54:05 glimmer cron-apt: Processing triggers for man-db (2.8.5-2) ...#015
Systemctl status output of the apache2 service:
root@glimmer:~# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2021-02-13 12:05:05 CET; 4 days ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 602 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Process: 10813 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Main PID: 1015 (apache2)
Tasks: 11 (limit: 4915)
Memory: 4.8G
CGroup: /system.slice/apache2.service
├─ 1015 /usr/sbin/apache2 -k start
├─10818 /usr/sbin/apache2 -k start
├─11790 /usr/sbin/apache2 -k start
├─11791 /usr/sbin/apache2 -k start
├─11792 /usr/sbin/apache2 -k start
├─11840 /usr/sbin/apache2 -k start
├─11906 /usr/sbin/apache2 -k start
├─12425 /usr/sbin/apache2 -k start
├─13525 /usr/sbin/apache2 -k start
├─13574 /usr/sbin/apache2 -k start
└─25411 /usr/sbin/apache2 -k start
feb 18 00:00:02 glimmer systemd[1]: Reloading The Apache HTTP Server.
feb 18 00:00:02 glimmer systemd[1]: Reloaded The Apache HTTP Server.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
root@glimmer:~# journalctl -u apache2
-- Logs begin at Wed 2021-02-17 10:29:01 CET, end at Thu 2021-02-18 07:33:36 CET. --
feb 18 00:00:02 glimmer systemd[1]: Reloading The Apache HTTP Server.
feb 18 00:00:02 glimmer systemd[1]: Reloaded The Apache HTTP Server.
root@glimmer:~#
As can be seen from the "Active" status, Apache was not restarted automatically.
Best regards
Björn