systemd-update-utmp.service 754 B

123456789101112131415161718192021
  1. # This file is part of systemd.
  2. #
  3. # systemd is free software; you can redistribute it and/or modify it
  4. # under the terms of the GNU Lesser General Public License as published by
  5. # the Free Software Foundation; either version 2.1 of the License, or
  6. # (at your option) any later version.
  7. [Unit]
  8. Description=Update UTMP about System Boot/Shutdown
  9. Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
  10. DefaultDependencies=no
  11. RequiresMountsFor=/var/log/wtmp
  12. Conflicts=shutdown.target
  13. After=systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service
  14. Before=sysinit.target shutdown.target
  15. [Service]
  16. Type=oneshot
  17. RemainAfterExit=yes
  18. ExecStart=/lib/systemd/systemd-update-utmp reboot
  19. ExecStop=/lib/systemd/systemd-update-utmp shutdown