Linux packages updated on shutdown?

Share your tips or issues concerning the WAPT Console or WAPT Agent here
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Answer
Houg
Messages: 7
Registration: July 2, 2020 - 9:59 AM

April 10, 2024 - 2:54 PM

Hello everyone,

Still testing WAPT to manage our Linux workstations, I continue to have questions.
Unfortunately, I'm finding very little documentation on the Linux version (behavior, packages, explanations, agent behavior, etc.) compared to the Windows version.
The only available resource is: https://www.wapt.fr/apidoc/wapt-2.5/linux/index.html

. I currently have an Ubuntu 22.04 LTS workstation with its agent, which correctly appears in the console – Self-service GUI installed (thanks to Denis's answer in another of my posts).

When I create/update a package: it seems to work if I "force" the update on the workstation (via the console or command line), but I can't find anywhere how to automatically update the workstation when it shuts down. I
want to achieve the same behavior as Windows with Waptexit.

Furthermore, in the console, I've noticed that if my packages are for "ubuntu" or, for example, "debian_based" operating systems, they don't appear if the "linux" filter is applied. Only packages for "linux" are visible.

Thank you in advance for your help. :)

Wapt client Linux - Ubuntu 22.04 LTS: 2.5.4.15342
Wapt Enterprise Server (on a Linux server): WAPT Server version: 2.5.4.15342
Wapt Console (on Windows): 2.5.4.15342
User avatar
dcardon
WAPT Expert
Messages: 1930
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

April 10, 2024 - 4:01 PM

Hi Alexis,

it's possible to add a `wapt-get -u upgrade` command on shutdown using systemd, but the waptexit interface won't be displayed (we haven't yet managed to get it working on the waptexit graphical buffer).

You can take inspiration from the systemd option provided here: https://opensource.com/life/16/11/runni ... down-linux.

Another parameter to consider in wapt-get.ini is `waptupgrade_task_period`, which forces regular upgrades (basically, it runs a `wapt-get upgrade` every few hours). However, you must properly configure the `impacted_process` values; otherwise, the upgrades might crash applications rather abruptly during updates.

We're interested in getting more feedback on the Linux side of things, so we welcome any customer feedback :-) !

Best regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Houg
Messages: 7
Registration: July 2, 2020 - 9:59 AM

April 10, 2024 - 4:25 PM

Thanks for the quick reply.

I specifically want to avoid "waptupgrade_task_period" because if software is installed or in use, I don't know which processes are affected.
A simple program like Vim is possible, but for example, I'm going to create a package (eventually, hopefully) to deploy Nvidia CUDA (among other packages). Here, it's not just one process that's affected, and it would be too much work to list everything for all the applications.

I also can't afford to shut down an application for the user. Some of us run calculations over several weeks. So if I shut them down... :lol: :lol: :lol:

We had thought about running a command on shutdown, but I wanted to know if there was already a way to do that with WAPT. We'll look into running something when the machine shuts down.


Regarding feedback, if you'd like, we can discuss it via private message if you're interested. I could tell you what I've noted so far. ;)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

April 11, 2024 - 1:27 PM

Houg wrote: Apr 10, 2024 - 4:25 PM We had thought about launching a command on shutdown, but I wanted to know if there was already a way to do it with WAPT => we'll look into launching something when the computer shuts down
Apart from systemd (the example Denis gave above), we haven't found anything better. Same problem under macOS :(

At a stretch, we could propose a regular update (with waptexit opening in the open session)
Houg
Messages: 7
Registration: July 2, 2020 - 9:59 AM

April 12, 2024 - 8:40 AM

Thanks for the feedback.

We'll look into it on our end; we're still considering our options (we're not in production yet anyway :D :D ):
- either a service that installs updates on shutdown => same as Windows
- or, for example, creating a package available to the user, who would then run it themselves for updates. This way, there are no issues with a running calculation, for example. But this carries the risk that the updates might not be installed.
- Alternatively, the pop-up solution that prompts the user to update could also be good: without forcing them, but simply to inform them that updates are available.


macOS will be our next objective. :P
Answer