2020-11-09 04:23:58 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-2.1-or-later
|
2017-11-18 16:35:03 +00:00
|
|
|
#
|
2010-08-11 02:38:55 +00:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 22:20:58 +00:00
|
|
|
# under the terms of the GNU Lesser General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2.1 of the License, or
|
2010-08-11 02:38:55 +00:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2012-04-13 17:38:57 +00:00
|
|
|
Description=Update UTMP about System Runlevel Changes
|
2013-05-15 22:19:03 +00:00
|
|
|
Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
|
2010-08-11 02:38:55 +00:00
|
|
|
DefaultDependencies=no
|
2012-06-25 12:24:56 +00:00
|
|
|
RequiresMountsFor=/var/log/wtmp
|
2013-05-15 22:19:03 +00:00
|
|
|
Conflicts=shutdown.target
|
|
|
|
Requisite=systemd-update-utmp.service
|
|
|
|
After=systemd-update-utmp.service
|
2012-06-25 12:24:56 +00:00
|
|
|
After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
|
2013-05-15 22:19:03 +00:00
|
|
|
Before=shutdown.target
|
2010-08-11 02:38:55 +00:00
|
|
|
|
|
|
|
[Service]
|
2010-08-13 16:23:01 +00:00
|
|
|
Type=oneshot
|
2010-08-17 01:29:46 +00:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-update-utmp runlevel
|