3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules
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
..
config Merge pull request #168168 from fedeinthemix/home-mode 2022-05-23 12:27:49 +02:00
hardware nixos/saleae-logic: init 2022-05-27 20:39:32 +02:00
i18n/input-method nixos/fcitx5: add the setting of RIME_DATA_DIR and options for rime-data 2022-04-25 13:39:19 +08:00
installer lib/systems/inspect.nix: remove isPowerPC 2022-05-25 09:45:42 +02:00
misc nixos/version: add trailing newline to os-release 2022-05-25 20:25:27 -04:00
profiles Merge pull request #169113 from ElvishJerricco/systemd-stage-1-installer-tests 2022-04-30 13:18:57 -07:00
programs nixos/atop: Convert log format to fix service start 2022-05-31 07:21:01 +02:00
security Merge pull request #156822 from xfix/wrapper-assert-argc-at-least-one 2022-05-16 18:52:51 +02:00
services Merge pull request #175316 from markuskowa/upd-slurm 2022-05-30 21:18:28 +02:00
system Merge pull request #172707 from klemensn/init-zfs-mount-options 2022-05-30 10:51:17 +02:00
tasks Merge pull request #171650 from helsinki-systems/feat/config-systemd-package 2022-05-09 10:23:04 +02:00
testing nixos/version: Warn about using the default of system.stateVersion 2022-05-05 12:22:31 +02:00
virtualisation nixos/vmware-guest: Remove the video driver 2022-05-30 11:56:21 +02:00
module-list.nix nixos/saleae-logic: init 2022-05-27 20:39:32 +02:00
rename.nix nixos/ssmtp: drop module 2022-04-17 00:44:50 +02:00