91

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.

2 Answers 2

110

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.
4
  • 1
    It's true. But you should update your systemd (use v227...). See github.com/systemd/systemd/issues/2236 Jan 12, 2016 at 22:54
  • 2
    Atleeast on CentOS 7 the service name is systemd-journald
    – varesa
    Oct 29, 2016 at 9:36
  • 29
    systemctl reload systemd-journald gives me error Failed to reload systemd-journald.service: Job type reload is not applicable for unit systemd-journald.service. on Centos 7
    – IanB
    Mar 4, 2017 at 4:50
  • 5
    See unix.stackexchange.com/questions/379288 for problems with this.
    – JdeBP
    Jul 19, 2017 at 13:01
36

systemctl restart systemd-journald does the trick.

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

1
  • 3
    " 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, 2020 at 5:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .