blob: c57a89752992c45880e033f687c6b7cd456fb1c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
[Unit]
Description=Import lastlog data into lastlog2 database
Documentation=man:lastlog2(8)
After=local-fs.target
ConditionPathExists=/var/log/lastlog
ConditionPathExists=!/var/lib/lastlog/lastlog2.db
[Service]
Type=oneshot
ExecStart=@usrbin_execdir@/lastlog2 --import /var/log/lastlog
ExecStartPost=/usr/bin/mv /var/log/lastlog /var/log/lastlog.migrated
RemainAfterExit=true
[Install]
WantedBy=default.target
|