Re: [systemd-devel] Failed to start up manager. Freezing execution.

2023-04-24 Thread Caeri Tech
To *run Linux from RAM *I have a hook that copies the contents of the root device to a zram device. Here is a snip from the hook: mkdir /real_root/ mount ${root} /real_root/ modprobe zram zRAM__DEV=$(zramctl -f -fs $(free -m | awk '/Mem/ {print int($2*2)"M"}') -a lzo -t

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
If you'd still like to continue using /etc/rc.d/rc.local, and it would be enough for it to be executed "after boot", IOW, after the default runlevel at boot is reached, the following four commands might help you: $ cat >/tmp/order-last.conf < Did you test this yourself? I couldn't get it to

Re: [systemd-devel] Failed to start up manager. Freezing execution.

2023-04-24 Thread Lennart Poettering
On Fr, 21.04.23 18:36, Caeri Tech (caerit...@gmail.com) wrote: > I've been running Linux from RAM for a couple years without issue. > However, since the upgrade from 252 to 253 the load to RAM fails and the > computer hangs with the message below: > > [!!] Failed to start up manager. > [

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
If you'd still like to continue using /etc/rc.d/rc.local, and it would be enough for it to be executed "after boot", IOW, after the default runlevel at boot is reached, the following four commands might help you: $ cat >/tmp/order-last.conf < Isn't that the same as running "systemctl edit

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
Would it be possible to change the rc-local.service configuration as follows, so that it could be used similarly as before i.e. running close to the end of the "runlevel" or systemd target: [Unit] After=crond.service Why crond? Why is that the "end of the runlevel"? I checked the service

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Lennart Poettering
On Mo, 24.04.23 13:01, Aki Ketolainen (a...@mykolab.com) wrote: >I tried to set After=systemd-update-utmp-runlevel.service but I got some >cyclic dependency problem. Would you know how to do that? s-u-u-r.s is a legacy service that will update utmp *after* all services that constitute a

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Arseny Maslennikov
On Mon, Apr 24, 2023 at 01:20:09PM +0300, Aki Ketolainen wrote: > > as Lennart already told you in the GitHub issue that "last" just doesn't > > make sense in systemd, there is also no need to change the dependencies > > global for everyone. Especially as there are systems out there which > >

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Lennart Poettering
On Mo, 24.04.23 11:57, Aki Ketolainen (a...@mykolab.com) wrote: > Would it be possible to change the rc-local.service configuration as > follows, so that it could be used similarly as before > i.e. running close to the end of the "runlevel" or systemd target: > > [Unit] > After=crond.service Why

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
> > This totally depends on the unit you wrote. Without it, we can't help. In general, ignore and forget the run level concept. > > BR > > Silvio > > I only changed these settings in rc-local.service: > > > [Unit] > After=systemd-update-utmp-runlevel.service > > [Install] >

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread killermoehre
Am 24.04.2023 um 12:52 schrieb Aki Ketolainen : >> This totally depends on the unit you wrote. Without it, we can't help. In >> general, ignore and forget the run level concept. >> BR >> Silvio > > I only changed these settings in rc-local.service: > > [Unit] >

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
> I tried to set After=systemd-update-utmp-runlevel.service but I got some cyclic dependency problem. Would you know how to do that? > > Best regards, > > Aki > This totally depends on the unit you wrote. Without it, we can't help. In general, ignore and forget the run level concept. BR

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread killermoehre
> Am 24.04.2023 um 12:20 schrieb Aki Ketolainen : > >> as Lennard already told you in the GitHub issue that "last" just doesn't >> make sense in systemd, there is also no need to change the dependencies >> global for everyone. Especially as there are systems out there which doesn't >> have

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
as Lennard already told you in the GitHub issue that "last" just doesn't make sense in systemd, there is also no need to change the dependencies global for everyone. Especially as there are systems out there which doesn't have crond installed (because there are .timer). Your best bet is

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
I tried to set After=systemd-update-utmp-runlevel.service but I got some cyclic dependency problem. Would you know how to do that?Best regards,AkiOn Apr 24, 2023 12:24 PM, killermoe...@gmx.net wrote:

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread killermoehre
> Am 24.04.2023 um 10:57 schrieb Aki Ketolainen : > > Hi, > I noticed in Rocky Linux 8.7 LXC container image that they've added a message > to /etc/rc.d/rc.local: > # In contrast to previous versions due to parallel execution during boot > # this script will NOT be run after all other services.

Re: [systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
I forgot to add that I also disabled  /usr/lib/systemd/system-generators/systemd-rc-local-generator from running as it added rc-local.service to multi-user.target (in /run/systemd).Best regards,AkiOn Apr 24, 2023 11:57 AM, Aki Ketolainen wrote:

[systemd-devel] rc-local.service and its future in systemd?

2023-04-24 Thread Aki Ketolainen
Hi, I noticed in Rocky Linux 8.7 LXC container image that they've added a message to /etc/rc.d/rc.local: # In contrast to previous versions due to parallel execution during boot # this script will NOT be run after all other services. I created an issue report on this at github:

Re: [systemd-devel] Resource limits getting enforced only for processes in user's terminal not for su [user] from root's terminal

2023-04-24 Thread Mantas Mikulėnas
On Mon, Apr 24, 2023 at 7:04 AM jaimin bhaduri wrote: > Cgroups v2 is enabled in almalinux 9.1 with 5.14.0-70.22.1.el9_0.x86_64 > kernel and systemd 250 (250-12.el9_1.3). > > Content of /etc/systemd/system/user-1002.slice.d/override.conf: > > > > > > > > > > > > > > > > > > >