Files
nixpkgs/nixos/modules/programs
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
2020-01-01 14:53:15 -05:00
2022-02-07 22:50:36 +01:00
2021-02-05 10:39:25 +01:00
2021-12-04 13:06:22 +01:00
2021-10-14 21:27:38 +03:00
2021-04-05 21:32:21 +02:00
2021-06-30 03:43:35 +02:00
2021-05-08 09:47:42 +02:00
2021-10-16 22:39:56 -04:00
2021-05-08 09:47:42 +02:00
2021-05-08 09:47:42 +02:00
2021-05-08 09:47:42 +02:00
2021-05-08 09:47:42 +02:00
2021-10-05 06:00:43 +02: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
2019-12-10 22:41:25 -05:00
2021-09-22 15:53:29 +02:00
2019-09-19 19:17:30 +02:00
2021-12-27 11:03:07 -03:00
2020-01-03 15:24:32 +00:00
2021-05-08 09:47:42 +02:00
2022-01-12 15:47:08 +00:00
2022-01-27 01:45:45 +01:00
2021-09-02 06:33:23 -06:00