[systemd-devel] masking --global, but allowing --user

2021-09-17 Thread Matt Zagrabelny
Greetings, I believe the Debian package of mpd enables a --global .service and .socket unit for the mpd daemon/service. I'd like to mask that and install it just to a single --user service. I've tried that: sudo systemctl --global mask mpd.service sudo systemctl --global mask mpd.socket and

Re: [systemd-devel] Examples to distinguish Before=/After= and Wants=/Requires=/BindsTo=

2021-09-17 Thread Kenneth Porter
--On Friday, September 17, 2021 12:49 PM +0200 Lennart Poettering wrote: more specific example: you can use apache without mysql, and you can use mysql without apache, but quite often they are used together, and if so you likely want to start mysql first, and apache second, since it likely

Re: [systemd-devel] masking --global, but allowing --user

2021-09-17 Thread Matt Zagrabelny
Hi! Thanks for the reply. On Fri, Sep 17, 2021 at 7:57 PM Michael Chapman wrote: > > On Sat, 18 Sep 2021, Matt Zagrabelny wrote: > > Greetings, > > > > I believe the Debian package of mpd enables a --global .service and > > .socket unit for the mpd daemon/service. > > > > I'd like to mask that

Re: [systemd-devel] masking --global, but allowing --user

2021-09-17 Thread Michael Chapman
On Sat, 18 Sep 2021, Matt Zagrabelny wrote: > Greetings, > > I believe the Debian package of mpd enables a --global .service and > .socket unit for the mpd daemon/service. > > I'd like to mask that and install it just to a single --user service. Why do you need to mask the socket and service at

[systemd-devel] when mount is delayed - start unit which depends on it - ?

2021-09-17 Thread lejeczek
Hi guys. I'm trying to have unit to start... well, I have a luks device which waits for manual passphrase input, when that happens 'systemd' mounts, without user intervention(which is great), that luks device. fstab: /dev/mapper/luks.devs /devs   ext4

[systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf from U-boot. (More choice, easier to write config, runtime kernel change). So far "kernel" and "initramfs"

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
On 2021/9/17 19:45, Lennart Poettering wrote: On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Qu Wenruo
On 2021/9/17 19:45, Lennart Poettering wrote: On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: Hi, I'm recently testing booting my RK3399 boards with the following boot sequence: U-boot -> systemd-boot (EFI payload) -> kernel Which provides much more flex than plain extlinux conf

Re: [systemd-devel] Systemd-boot not properly loading device tree, when loaded by U-boot (ARM64, tested on RK3399)

2021-09-17 Thread Lennart Poettering
On Fr, 17.09.21 19:25, Qu Wenruo (w...@suse.com) wrote: > Hi, > > I'm recently testing booting my RK3399 boards with the following boot > sequence: > > U-boot -> systemd-boot (EFI payload) -> kernel > > Which provides much more flex than plain extlinux conf from U-boot. > (More choice, easier to

Re: [systemd-devel] Examples to distinguish Before=/After= and Wants=/Requires=/BindsTo=

2021-09-17 Thread Lennart Poettering
On Mi, 15.09.21 17:15, Manuel Wagesreither (man...@fastmail.fm) wrote: > Hello all, > > I'm onboarding some collegues who don't have much experience with > systemd. One thing I would like to focus on is the difference > between Before=/After= and Wants=/Requires=/BindsTo in systemd > units. > > I

Re: [systemd-devel] Examples to distinguish Before=/After= and Wants=/Requires=/BindsTo=

2021-09-17 Thread Pagliari, Vivenzio (Nokia - DE/Ulm)
Hello Manuel, my experience is that it is helpful for people new to systemd to "raise the right question" that is answered by the corresponding relationship between systemd units. The question "*if* a unit shall be started/enqueued" is answered Wants=/Requires=/BindsTo relation. I call this