Klemens Nanni 09350ff7d4 nixos/atop: Convert log format to fix service start
Raw logs are stored in a versioned binary format and must be update with
atopconvert(1) upon atop version updates.

Failure to do so results in atop.service startup failure as I found out
the hard way after the "atop: 2.6.0 -> 2.7.1"[0] bump:
```
May 31 01:49:25 <hostname> sh[2269709]: existing file /var/log/atop/atop_20220531 has incompatible header
May 31 01:49:25 <hostname> sh[2269709]: (created by version 2.6 - current version 2.7)
May 31 01:49:25 <hostname> systemd[1]: atop.service: Main process exited, code=exited, status=7/NOTRUNNING
```

Convert logs in `ExecStartPre` and replace them iff updated.
This is to avoid changing original modification times upon every service
start and thus work against atop's log rotation (see existing
`ExecStartPre`).

0: https://github.com/NixOS/nixpkgs/pull/175180#issuecomment-1141546487
2022-05-31 07:21:01 +02:00
..
2022-03-30 08:23:27 -07:00
2022-02-07 22:50:36 +01:00
2021-12-04 13:06:22 +01:00
2021-10-14 21:27:38 +03:00
2021-10-16 22:39:56 -04:00
2022-03-05 12:38:36 +01:00
2022-05-15 21:06:05 +02:00
2022-03-25 16:30:13 +00:00
2021-12-27 11:03:07 -03:00
2022-01-12 15:47:08 +00:00
2022-01-27 01:45:45 +01:00