Re: Using telinit {1,3,5} with systemd

Liste des GroupesRevenir à ol advocacy 
Sujet : Re: Using telinit {1,3,5} with systemd
De : sebastian (at) *nospam* here.com.invalid (Sebastian Wells)
Groupes : comp.os.linux.advocacy
Date : 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 systemd20vallor
24 May 24 +- Re: Using telinit {1,3,5} with systemd1Lawrence D'Oliveiro
24 May 24 +* Re: Using telinit {1,3,5} with systemd5Andrzej Matuch
25 May 24 i`* Re: Using telinit {1,3,5} with systemd4vallor
25 May 24 i `* Re: Using telinit {1,3,5} with systemd3Andrzej Matuch
25 May 24 i  `* Re: Using telinit {1,3,5} with systemd2vallor
26 May 24 i   `- Re: Using telinit {1,3,5} with systemd1Andrzej Matuch
24 May 24 `* Re: Using telinit {1,3,5} with systemd13candycanearter07
24 May 24  +* Re: Using telinit {1,3,5} with systemd2rbowman
25 May 24  i`- Re: Using telinit {1,3,5} with systemd1vallor
24 May 24  `* Re: Using telinit {1,3,5} with systemd10Lawrence D'Oliveiro
25 May 24   `* Re: Using telinit {1,3,5} with systemd9candycanearter07
25 May 24    +* Re: Using telinit {1,3,5} with systemd4Lawrence D'Oliveiro
25 May 24    i+- Re: Using telinit {1,3,5} with systemd1vallor
25 May 24    i`* Re: Using telinit {1,3,5} with systemd2Sebastian Wells
25 May 24    i `- Re: Using telinit {1,3,5} with systemd1Lawrence D'Oliveiro
25 May 24    `* Re: Using telinit {1,3,5} with systemd4rbowman
27 May 24     `* Re: Using telinit {1,3,5} with systemd3candycanearter07
27 May 24      `* Re: Using telinit {1,3,5} with systemd2vallor
27 May 24       `- Re: Using telinit {1,3,5} with systemd1Lawrence D'Oliveiro

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal