mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/lighttpd: add reload support
Allow reloading the webserver, which is useful when e.g there are new certificates available that we want lighttpd to use, but don't want to completely shut down the server.
This commit is contained in:
parent
321b684c40
commit
cc7791cfd9
2 changed files with 2 additions and 0 deletions
|
@ -17,5 +17,6 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
|
|||
server.wait_for_unit("lighttpd.service")
|
||||
res = server.succeed("curl --fail http://localhost/file.txt")
|
||||
assert "hello nixos test" in res, f"bad server response: '{res}'"
|
||||
server.succeed("systemctl reload lighttpd")
|
||||
'';
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue