Sujet : Re: Using telinit {1,3,5} with systemd
De : sebastian (at) *nospam* here.com.invalid (Sebastian Wells)
Groupes : comp.os.linux.advocacyDate : 25. May 2024, 08:22:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v2s02r$2okjl$1@dont-email.me>
References : 1 2 3 4 5
User-Agent : Pan/0.154 (Izium; 517acf4)
On Fri, 24 May 2024 23:10:13 -0000 (UTC), Lawrence D'Oliveiro wrote:
On Fri, 24 May 2024 22:40:04 -0000 (UTC), candycanearter07 wrote:
>
So how do you go to single user mode with systemctl commands?
>
The equivalent of “runlevels” is “targets”
<https://www.freedesktop.org/software/systemd/man/latest/
systemd.target.html>.
That document is remarkably useless. All it tells you is how to create a
"target". It says nothing about what the default targets even are, let
alone anything at all about which ones map to the runlevels. I suppose
the target files are created by each distro instead of shipping with
Systemd, otherwise why wouldn't they be listed anywhere?
Double checking, I found that targets I know to exist have no man pages.
For example, I know there's a "multi-user.target".
The only way to find out what all the targets are is to search the
filesystem for them, and there are an absolute fuckton of them, mostly in
/lib/systemd and /usr/lib/systemd, but they appear in other places, too.
I happened to notice files with names like "runlevel5.target". There
seems to be one for each runlevel, at least on Ubuntu. Lucky me
for noticing, I guess.
I couldn't guess how to write a target to bring back /etc/rc.local,
which used to be supported by Systemd but they got rid of it because
it was all four of the Four Olds. Fortunately, I still have some VMs
in Google Cloud that are old enough to have the .target file for
that (or maybe it'll be a .service file, who knows), so I'd just have
to download it.
Date | Sujet | # | | Auteur |
24 May 24 | Using telinit {1,3,5} with systemd | 20 | | vallor |
24 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | Lawrence D'Oliveiro |
24 May 24 | Re: Using telinit {1,3,5} with systemd | 5 | | Andrzej Matuch |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 4 | | vallor |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 3 | | Andrzej Matuch |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 2 | | vallor |
26 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | Andrzej Matuch |
24 May 24 | Re: Using telinit {1,3,5} with systemd | 13 | | candycanearter07 |
24 May 24 | Re: Using telinit {1,3,5} with systemd | 2 | | rbowman |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | vallor |
24 May 24 | Re: Using telinit {1,3,5} with systemd | 10 | | Lawrence D'Oliveiro |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 9 | | candycanearter07 |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 4 | | Lawrence D'Oliveiro |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | vallor |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 2 | | Sebastian Wells |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | Lawrence D'Oliveiro |
25 May 24 | Re: Using telinit {1,3,5} with systemd | 4 | | rbowman |
27 May 24 | Re: Using telinit {1,3,5} with systemd | 3 | | candycanearter07 |
27 May 24 | Re: Using telinit {1,3,5} with systemd | 2 | | vallor |
27 May 24 | Re: Using telinit {1,3,5} with systemd | 1 | | Lawrence D'Oliveiro |