Skip to content

znapzend service: Added options for logging and nodestroy #25960

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

Closed
wants to merge 4 commits into from

Conversation

infinisil
Copy link
Member

and service now restarts on failure

Motivation for this change

The znapzend program has some useful options that weren't accessible before.

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.

Sorry, something went wrong.

@mention-bot
Copy link

@infinisil, thanks for your PR! By analyzing the history of the files in this pull request, we identified @otwieracz, @Mic92 and @dermetfan to be potential reviewers.


logTo = mkOption {
type = types.str;
default = "";
Copy link
Member

Choose a reason for hiding this comment

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

$ znapzend --logto=
Option logto requires an argument

This option should have a sensible default or appended optianlly like noDestroy.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks, I added znapzends default.

ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
#Restart = "on-failure";
Copy link
Member

Choose a reason for hiding this comment

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

Why is it commented out?

Copy link
Member Author

Choose a reason for hiding this comment

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

Accident, fixed in the next commit

@@ -26,7 +26,7 @@ in

noDestroy = mkOption {
type = types.bool;
default = true;
default = false;
Copy link
Member Author

Choose a reason for hiding this comment

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

Default for noDestroy should be false, not true

@infinisil
Copy link
Member Author

I wanna apologize for the many small changes after opening the PR, I'm still kind of new to git, github and nix, I'll test my changes better next time :)

@fpletz
Copy link
Member

fpletz commented May 22, 2017

No problem there. Thanks for your contributions! 🍻

LGTM now. 👍 Let's wait a bit for @Mic92 for a quick review.

@fpletz
Copy link
Member

fpletz commented May 22, 2017

Oh, and if you want you can try to squash your commits into one, i.e. with git rebase -i. But whoever merges this can certainly handle this for you. :)

@Mic92 Mic92 closed this in 3497ba5 May 22, 2017
@Mic92
Copy link
Member

Mic92 commented May 22, 2017

Thanks!

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

4 participants