• [^] # Re: Journald

    Posté par (site web personnel) . En réponse à la dépêche systemd pour les administrateurs, partie 1 et 2. Évalué à 5.

    Si tu ne veux pas avoir les logs de journald écrit sur ton disque, il te suffit de supprimer le dossier "/var/log/journal".

    Extrait de la page man de journald.conf (fichier de conf /etc/systemd/journald.conf) :

    Storage= Controls where to store journal data. One of "volatile", "persistent", "auto" and "none". If "volatile", journal log data will be stored only in memory, i.e. below the /run/log/journal hierarchy (which is created if needed). If "persistent", data will be stored preferably on disk, i.e. below the /var/log/journal hierarchy (which is created if needed), with a fallback to /run/log/journal (which is created if needed), during early boot and if the disk is not writable. "auto" is similar to "persistent" but the directory /var/log/journal is not created if needed, so that its existence controls where log data goes. "none" turns off all storage, all log data received will be dropped. Forwarding to other targets, such as the console, the kernel log buffer or a syslog daemon will still work however. Defaults to "auto".

    En clair si dans le fichier "/etc/systemd/journald.conf" la directive "Storage" n'est pas définie ou est définie à "auto", alors le journal n'est écrit sur le disque que si le dossier "/var/log/journal" existe.