Systemd

De Linuxmemo.

(Différences entre les versions)
(DNS)
(Configurer)
Ligne 20 : Ligne 20 :
  systemctl enable nom_du_service.service
  systemctl enable nom_du_service.service
  systemctl disable nom_du_service.service
  systemctl disable nom_du_service.service
 +
 +
Unit dependencies and order:
 +
vim /etc/systemd/system/multi-user.target.wants/unit-name.service
 +
AFTER= xxx xxx
 +
== Client NTP==
== Client NTP==
  vim /etc/systemd/timesyncd.conf
  vim /etc/systemd/timesyncd.conf

Version du 18 juin 2021 à 10:07

Sommaire

Statut

systemctl is-active nom_du_service.service 
systemctl status nom_du_service.service
  • Liste des services:
systemctl list-unit-files --state=enabled
systemctl list-unit-files --type service --state enabled,generated

systemctl list-units --type=service
systemctl list-units --type=service --state=running
systemctl list-units --type=service --state=active

Start/stop

systemctl start nom_du_service.service 
systemctl stop nom_du_service.service
systemctl restart nom_du_service.service

Configurer

systemctl enable nom_du_service.service
systemctl disable nom_du_service.service

Unit dependencies and order:

vim /etc/systemd/system/multi-user.target.wants/unit-name.service
AFTER= xxx xxx

Client NTP

vim /etc/systemd/timesyncd.conf
[Time]
NTP=mon.server.ntp

systemctl stop systemd-timesyncd
systemctl start systemd-timesyncd
systemctl status systemd-timesyncd

DNS

systemd-resolve --status

To set "dns-search":

systemd-resolve --set-domain=chez.moi --interface=eno1
vim /etc/systemd/resolved.conf

NetworkManager

systemctl status NetworkManager

nmtui est l’outil graphique dans un terminal texte

nmcli est l’outil en ligne de commande.

Outils personnels