Obfs4 bridge. Should you restart the server after automatic update?

Hello

I’m creating a private obfs4 bridge for my friends. I’m creating it on the Debian 12 server.
I care about its availability.

1 I decided to make automatic updates using this command:

apt-get install unattended-upgrades apt-listchanges

2 Later I set up the TOR project package repository for Debian 12

3 Then I put the following lines in the /etc/apt/apt.conf.d/50unattended-upgrades file:

Unattended-Upgrade::Origins-Pattern {
“origin=Debian,codename=${distro_codename},label=Debian-Security”;
“origin=TorProject”;
};
Unattended-Upgrade::Package-Blacklist {
};

4 Later, I updated the /etc/apt/apt.conf.d/20auto-upgrades file with the following:

APT::Periodic::Update-Package-Lists “1”;
APT::Periodic::AutocleanInterval “5”;
APT::Periodic::Unattended-Upgrade “1”;
APT::Periodic::Verbose “1”;

And here the questions arise:
Is it necessary to restart your computer automatically?
Does this automatic restart affect the update deployment?
If I don’t enable automatic restart after update, should I manually restart my computer (to implement updates)?

The instructions on page Tor Project | Debian and Ubuntu indicate:

If you want to automatically reboot add the following at the the end of the file /etc/apt/apt.conf.d/50unattended-upgrades:
Unattended-Upgrade::Automatic-Reboot “true”;

I’m afraid that such an automatic restart will affect the availability of my bridge (it will turn off for my users).
Please help and understand (I don’t write well in English).

Unless you’re working on a production environment, automatic reboot is always a good idea! Being up to date and secure is far more important than a little downtime. :slightly_smiling_face:

Also keep in mind that rebooting is only necessary to apply updates to the OS kernel (very important stuff!). Packages will update without the need to restart the machine.

I do update automatically and do reboot the system if it is needed: tor-relays/playbooks/roles/setup_common/tasks/auto-update.yaml at main · toralf/tor-relays · GitHub

For Tor I do decide whether a reload or eestart is needed: tor-relays/playbooks/roles/setup_tor/handlers/main.yaml at main · toralf/tor-relays · GitHub