Use nix option for yate config reload #21
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: CCCHH/nix-infra#21
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix-yate-reload"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Turns out, systemd unit files just ignore multi-line scripts.
so we are switching to systemd.services..reload
This not only throws no errors, but should actually work.
The multi-line script will be put into a separate file and called as such.
This does not work
ExecReload= /nix/store/h2zihm0hb2n4ha5g96prrmgi71ixxvlr-git-2.47.1/bin/git config --global --add safe.directory /var/lib/yate /usr/bin/env GIT_SSH_COMMAND=\\"/nix/store/wi7sndvja4lf7lr0wz822cnq5dm575yv-openssh-9.9p1/bin/ssh -i /run/secrets/git_clone_key\\" /nix/store/h2zihm0hb2n4ha5g96prrmgi71ixxvlr-git-2.47.1/bin/git -C /var/lib/yate fetch --all /usr/bin/env GIT_SSH_COMMAND=\\"/nix/store/wi7sndvja4lf7lr0wz822cnq5dm575yv-openssh-9.9p1/bin/ssh -i /run/secrets/git_clone_key\\" /nix/store/h2zihm0hb2n4ha5g96prrmgi71ixxvlr-git-2.47.1/bin/git -C /var/lib/yate reset --hard origin/main
This at least works sometimes
ExecStartPre=/nix/store/7qkwspcgk08m1gr4r0wy9xvnqw2yfqph-unit-script-yate-pre-start/bin/yate-pre-start
From what I can tell, this works now as it is supposed to.
Config is pulled on rebuild switch and on unit reload
WIP: Use nix option for yate config reloadto Use nix option for yate config reload6383cbb62f
to5cf9cffa77