Score:0

How to change vendor preset in systemd?

si flag

I noticed the vendor preset for systemd services, and after researching I only found that distributions specify *.preset files to set vendor presets, but I cannot find it in ubuntu 22.04. Does Ubuntu define any such preset file where one can change the vendor presets?

hr flag
So you don't have `/lib/systemd/system-preset/90-systemd.preset` and `/usr/lib/systemd/user-preset/90-systemd.preset` on your system?
Xavanteex avatar
si flag
Thank you, do those determine all systemd service paths, including `/etc/systemd`?
Score:0
in flag

systemd presets determine if a service should be enabled or disabled by default when it is installed. Unless you are making your own distro, there is not much of a reason to change the presets.

Presumably you don't want to change the preset but the actual service status itself. For example, either

systemd enable something.service

or

systemd disable something.service

or maybe

systemd enable --now something.service

Editing the preset files directly is a bad idea, as the next update may replace those files and undo your changes. The commands above are permanent (and in the case of --now also immediate).

Xavanteex avatar
si flag
I understand, but looking at understanding ubuntu a bit more. I also want to know where continue my own reading, met a small deadlock on google and even chatgpt who answered almost identically to your own answer, like so many before. Since I did not see corresponding directories for each of the sysmted paths, I wanted to continue there.
user10489 avatar
in flag
man page for systemd.preset may be helpful. There's several other systemd commands (info? status?) that might be helpful but probably not. I believe the systemd website might have more information, more geared towards people who are making distros that is probably closer to what you want.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.