alignements et présentation

This commit is contained in:
Jérémy Lecour 2017-06-20 00:17:16 +02:00 committed by Jérémy Lecour
parent 06dc53b9d9
commit 2f6e372ad6

View file

@ -55,16 +55,16 @@
<h3>Les fichiers de cron</h3> <h3>Les fichiers de cron</h3>
<pre> <pre>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# systemctl status cron # systemctl status cron
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# vim /etc/crontab # vim /etc/crontab
# vim /etc/default/cron # vim /etc/default/cron
</code> </code>
</pre> </pre>
<pre> <pre>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# vim /etc/cron.d/example # vim /etc/cron.d/example
</code> </code>
30 05 * * 0 www-data /usr/local/adm/savelog-weekly 30 05 * * 0 www-data /usr/local/adm/savelog-weekly
</pre> </pre>
@ -95,13 +95,13 @@ MAILTO=alert@example.com
<h3>Documentation et consultation</h3> <h3>Documentation et consultation</h3>
<pre> <pre>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
$ man 5 crontab $ man 5 crontab
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
$ crontab -l $ crontab -l
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# crontab -u jdoe -l # crontab -u jdoe -l
</code> </code>
</pre> </pre>
</section> </section>
@ -114,13 +114,13 @@ MAILTO=alert@example.com
<section> <section>
<pre> <pre>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
$ date $ date
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# apt install ntp # apt install ntp
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
Fichier /etc/ntp.conf : # cat /etc/ntp.conf :
</code> </code>
server ntp.evolix.net server ntp.evolix.net
</pre> </pre>
@ -129,16 +129,16 @@ server ntp.evolix.net
<section> <section>
<pre> <pre>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# ntpq -p # ntpq -p
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
$ timedatectl $ timedatectl
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# hwclock --show # hwclock --show
</code> </code>
<code data-trim class="hljs nohighlight"> <code data-trim class="hljs nohighlight">
# hwclock --systohc # hwclock --systohc
</code> </code>
</pre> </pre>
</section> </section>
@ -209,7 +209,7 @@ server ntp.evolix.net
<section> <section>
<h3>Installation</h3> <h3>Installation</h3>
<pre><code data-trim class="hljs nohighlight"> <pre><code data-trim class="hljs nohighlight">
# apt install postfix # apt install postfix
</code></pre> </code></pre>
<h3>Configuration</h3> <h3>Configuration</h3>
<ul> <ul>
@ -220,7 +220,6 @@ server ntp.evolix.net
<section> <section>
<pre> <pre>
<code># vim main.cf</code> <code># vim main.cf</code>
<code data-trim style="max-height: 500px">
smtpd_banner = $myhostname ESMTP mail server smtpd_banner = $myhostname ESMTP mail server
biff = no biff = no
append_dot_mydomain = no append_dot_mydomain = no
@ -236,7 +235,7 @@ recipient_delimiter = +
inet_interfaces = all inet_interfaces = all
inet_protocols = ipv4 inet_protocols = ipv4
disable_vrfy_command = yes disable_vrfy_command = yes
</code></pre> </pre>
</section> </section>
<section> <section>