]> git.ipfire.org Git - thirdparty/systemd.git/blame - units/systemd-update-utmp.service.in
utmp: turn systemd-update-utmp-shutdown.service into a normal runtime service
[thirdparty/systemd.git] / units / systemd-update-utmp.service.in
CommitLineData
3f92e4b4
LP
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
8[Unit]
9Description=Update UTMP about System Reboot/Shutdown
10Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
11DefaultDependencies=no
12RequiresMountsFor=/var/log/wtmp
13Conflicts=shutdown.target
14After=systemd-readahead-collect.service systemd-readahead-replay.service systemd-remount-fs.service systemd-tmpfiles-setup.service auditd.service
15Before=sysinit.target shutdown.target
16
17[Service]
18Type=oneshot
19RemainAfterExit=yes
20ExecStart=@rootlibexecdir@/systemd-update-utmp reboot
21ExecStop=@rootlibexecdir@/systemd-update-utmp shutdown