systemd-update-utmp-runlevel.service 757 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 Runlevel Changes
  9. Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
  10. DefaultDependencies=no
  11. RequiresMountsFor=/var/log/wtmp
  12. Conflicts=shutdown.target
  13. Requisite=systemd-update-utmp.service
  14. After=systemd-update-utmp.service
  15. After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
  16. Before=shutdown.target
  17. [Service]
  18. Type=oneshot
  19. ExecStart=/lib/systemd/systemd-update-utmp runlevel