54

My question is simple: how do I tell journald to re-read its configuration file without rebooting?

I've made some changes to /etc/systemd/journald.conf and I'd like to see if they are correct and everything works as I expect.

I do not want to reboot.

65

To control running services with systemd, use the systemctl utility. This utility is similar to the service utility provided by SysVinit and Upstart. Among others:

  • systemctl status systemd-journald indicates whether the service is running and additional information if it is.
  • systemctl start systemd-journald starts the service (systemd unit).
  • systemctl stop systemd-journald stops the service.
  • systemctl restart systemd-journald restarts the service.
  • systemctl reload systemd-journald reloads the service's configuration if possible, but will not kill it (so no risk of a service interruption or of disrupting processing in progress, but the service may keep running with a stale configuration).
  • systemctl force-reload systemd-journald reloads the service's configuration if possible, and if not restarts the service (so the service is guaranteed to use the current configuration, but this may interrupt something).
  • systemctl daemon-reload reloads systemd's own configuration.
| improve this answer | |
26

systemctl restart systemd-journald does the trick.

I'm answering it myself as googling it does not return any useful page.

| improve this answer | |
  • 1
    " If systemd-journald.service is restarted using systemctl restart or equivalent operation instead of a pair of separate systemctl stop and systemctl start commands (or equivalent operations), these stream connections are not terminated and survive the restart. It is thus safe to restart systemd-journald.service" freedesktop.org/software/systemd/man/… – No_name May 2 at 5:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.