Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

znapzend service: fix reload #25009

Merged
merged 2 commits into from May 1, 2017
Merged

znapzend service: fix reload #25009

merged 2 commits into from May 1, 2017

Conversation

dermetfan
Copy link
Member

Motivation for this change

#24438

In addition to /bin/kill not being found, the script forked so that $MAINPID became the PID of the shell instead of the znapzend process. When SIGHUP was sent to the shelI, it sent SIGTERM to znapzend.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

${pkgs.coreutils}/bin/kill -HUP $MAINPID
'';
serviceConfig = {
ExecStart = "${pkgs.znapzend}/bin/znapzend";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script attribute was unnecessary here.

@7c6f434c 7c6f434c merged commit b28e278 into NixOS:master May 1, 2017
@dermetfan dermetfan deleted the fix-znapzend-service branch May 15, 2017 13:10
@dermetfan dermetfan mentioned this pull request May 15, 2017
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants