Skip to content

znapzend service: fix reload#25009

Merged
7c6f434c merged 2 commits intoNixOS:masterfrom
dermetfan:fix-znapzend-service
May 1, 2017
Merged

znapzend service: fix reload#25009
7c6f434c merged 2 commits intoNixOS:masterfrom
dermetfan:fix-znapzend-service

Conversation

@dermetfan
Copy link
Copy Markdown
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
Copy Markdown
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.

3 participants