about summary refs log tree commit diff
path: root/nixos/tests/lighttpd.nix
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2023-10-18 12:17:45 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-10-19 19:23:04 +0200
commitcc7791cfd966b660eec5742b7e7b3048f3c9010c (patch)
tree01070faa11e67e056e031c9ea59c88b62ba79d03 /nixos/tests/lighttpd.nix
parent321b684c4090e649b2a50ae16f1ca796ccfbff24 (diff)
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.
Diffstat (limited to 'nixos/tests/lighttpd.nix')
-rw-r--r--nixos/tests/lighttpd.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/tests/lighttpd.nix b/nixos/tests/lighttpd.nix
index 36e2745c55c15..daef1584a45c7 100644
--- a/nixos/tests/lighttpd.nix
+++ b/nixos/tests/lighttpd.nix
@@ -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")
   '';
 })