2010-08-10 19:38:55 -07:00
|
|
|
# This file is part of systemd.
|
|
|
|
#
|
|
|
|
# systemd is free software; you can redistribute it and/or modify it
|
2012-04-11 15:20:58 -07: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-10 19:38:55 -07:00
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
[Unit]
|
2012-04-13 10:38:57 -07:00
|
|
|
Description=Update UTMP about System Runlevel Changes
|
2013-05-15 15:19:03 -07:00
|
|
|
Documentation=man:systemd-update-utmp.service(8) man:utmp(5)
|
2010-08-10 19:38:55 -07:00
|
|
|
DefaultDependencies=no
|
2012-06-25 05:24:56 -07:00
|
|
|
RequiresMountsFor=/var/log/wtmp
|
2013-05-15 15:19:03 -07:00
|
|
|
Conflicts=shutdown.target
|
|
|
|
Requisite=systemd-update-utmp.service
|
|
|
|
After=systemd-update-utmp.service
|
2012-06-25 05:24:56 -07:00
|
|
|
After=runlevel1.target runlevel2.target runlevel3.target runlevel4.target runlevel5.target
|
2013-05-15 15:19:03 -07:00
|
|
|
Before=shutdown.target
|
2010-08-10 19:38:55 -07:00
|
|
|
|
|
|
|
[Service]
|
2010-08-13 09:23:01 -07:00
|
|
|
Type=oneshot
|
2010-08-16 18:29:46 -07:00
|
|
|
ExecStart=@rootlibexecdir@/systemd-update-utmp runlevel
|