Systemd

De Linuxmemo.

(Différences entre les versions)
(Start/stop)
(Configurer)
Ligne 13 : Ligne 13 :
  systemctl enable nom_du_service.service
  systemctl enable nom_du_service.service
  systemctl disable nom_du_service.service
  systemctl disable nom_du_service.service
 +
== Client NTP==
 +
vim /etc/systemd/timesyncd.conf
 +
[Time]
 +
NTP=mon.server.ntp
 +
 +
systemctl stop systemd-timesyncd
 +
systemctl start systemd-timesyncd
 +
systemctl status systemd-timesyncd

Version du 4 avril 2017 à 06:59

Sommaire

Statut

systemctl is-active nom_du_service.service 
systemctl status nom_du_service.service
systemctl list-units --type=service

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

Client NTP

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

systemctl stop systemd-timesyncd
systemctl start systemd-timesyncd
systemctl status systemd-timesyncd
Outils personnels