| 1 |
[Unit] |
| 2 |
Description=Write boot and shutdown times into wtmpdb |
| 3 |
Documentation=man:wtmpdb(8) |
| 4 |
DefaultDependencies=no |
| •5 |
RequiresMountsFor=/var/log |
| 6 |
Conflicts=shutdown.target |
| 7 |
After=systemd-remount-fs.service systemd-tmpfiles-setup.service |
| 8 |
Before=shutdown.target |
| 9 |
# Ask for the dbus socket. |
| 10 |
Wants=dbus.socket |
| 11 |
After=dbus.socket |
| 12 |
|
| 13 |
[Service] |
| 14 |
Type=oneshot |
| 15 |
ExecStart=/usr/bin/wtmpdb boot |
| 16 |
ExecStop=/usr/bin/wtmpdb shutdown |
| 17 |
RemainAfterExit=true |
| 18 |
|
| 19 |
[Install] |
| 20 |
WantedBy=default.target |