sozu icon indicating copy to clipboard operation
sozu copied to clipboard

Packaging on Nixpkgs

Open rizary opened this issue 5 years ago • 1 comments

Hi! I want to properly package sozu (using systemd) in nixpkgs (in case anyone doesn't know nixpkgs, it is a package manager used by NixOS or Nix programming language). So I am looking at the https://github.com/sozu-proxy/sozu/tree/master/os-build/systemd and wondering:

  1. why it wants to write a PID file in the first place
  2. Does RUNDIR same with RuntimeDirectory?

I have asked this in gitter but no one answered. I hope this is the place to discuss on this matter.

rizary avatar Oct 25 '20 00:10 rizary

hello! The PID file is here to help systemd, so it can follow the mater process during upgrades (replacing the current version of sozu with a new one without downtime): https://github.com/sozu-proxy/sozu/blob/master/bin/config.toml#L88-L92 RUNDIR corresponds to /run or /var/run depending on how your system is set up. We use scripts to replace those values: https://github.com/sozu-proxy/sozu/blob/005a57e8683dc563fb8165aa367d723861dfe618/os-build/exherbo/generate.sh#L7

Geal avatar Nov 05 '20 13:11 Geal