From 1d51564b7624c33390400dddcaa31457f85ec8db Mon Sep 17 00:00:00 2001 From: Gregory Colpart Date: Mon, 19 Jun 2017 22:59:55 +0200 Subject: [PATCH] contenu NTP + Systemd --- reveal/sysadmin.html | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/reveal/sysadmin.html b/reveal/sysadmin.html index 2b1bd96..99ff27b 100644 --- a/reveal/sysadmin.html +++ b/reveal/sysadmin.html @@ -78,12 +78,52 @@ $ crontab -l

ntpd

-https://wiki.evolix.org/HowtoNTP +$ date +# apt install ntp + +Fichier /etc/ntp.conf : +server ntp.evolix.net + +# ntpq -p + +$ timedatectl +# hwclock --show +# hwclock --systohc

systemd

-https://wiki.evolix.org/HowtoSystemd +systemd est un gestionnaire de services (le fameux démon avec le PID 1) en alternative au System V. Il est installé par défaut depuis Debian 8. + +# systemctl status +# systemctl list-units +# systemctl --failed +# systemctl list-unit-files + +Unités par défaut : /usr/lib/systemd/system/ +Modifications manuelles : /etc/systemd/system/ + +# systemctl start +# systemctl stop +# systemctl restart +# systemctl reload + +# systemctl status +# systemctl is-enabled + +# systemctl enable +# systemctl disable + +# systemctl reboot +# systemctl poweroff + +Modifier une unité + +# cp -a /lib/systemd/system/.service /etc/systemd/system/ +# vim /etc/systemd/system/.service +# systemctl daemon-reload + +TODO