build02/nixpkgs-update: tee worker stdout and stderr to log files
This commit is contained in:
parent
8da79f024c
commit
35e918b008
1 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,7 @@ let
|
||||||
curl
|
curl
|
||||||
getent # used by hub
|
getent # used by hub
|
||||||
cachix
|
cachix
|
||||||
|
apacheHttpd # for rotatelogs, used by worker script
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs-update-github-releases' = "${inputs.nixpkgs-update-github-releases}/main.py";
|
nixpkgs-update-github-releases' = "${inputs.nixpkgs-update-github-releases}/main.py";
|
||||||
|
@ -47,6 +48,10 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
|
mkdir -p "$LOGS_DIRECTORY/~workers/"
|
||||||
|
exec > >(rotatelogs -eD "$LOGS_DIRECTORY"'/~workers/%Y-%m-%d-${name}.stdout.log' 86400)
|
||||||
|
exec 2> >(rotatelogs -eD "$LOGS_DIRECTORY"'/~workers/%Y-%m-%d-${name}.stderr.log' 86400 >&2)
|
||||||
|
|
||||||
pipe=/var/lib/nixpkgs-update/fifo
|
pipe=/var/lib/nixpkgs-update/fifo
|
||||||
|
|
||||||
if [[ ! -p $pipe ]]; then
|
if [[ ! -p $pipe ]]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue