nixpkgs-suyu/nixos
Niklas Hambüchen 123171b557 nixos/smokeping: Remove partOf to ensure restarts work.
Details on https://github.com/NixOS/nixops/issues/1063#issuecomment-453253666.

`partOf` makes that if `smokeping.service` is stopped, `thttpd.service` will
be stopped as well.
(But not that `thttpd` will be started when `smokeping` is started).

Once `thttpd.service` is stopped that way, `Restart = always` will not apply.

When the smokeping config options are changed, NixOS's `switch-configuration.pl`
will stop `smokeping` (whit shuts down thttpd due to `partOf`), and then restart
smokeping; but this does not start thttpd.
As a result, thttpd will be off after changing the config, which isn't desired.

This commit fixes it by removing the `partOf`, which makes `Restart` work
as expected.
2021-11-01 23:20:40 +01:00
..
doc Merge pull request #142743 from symphorien/ihm-5-dev-2 2021-10-31 19:32:40 +00:00
lib Revert "nixos/specialisation: Rephrase in terms of extendModules, noUserModules" 2021-11-01 09:41:55 +01:00
maintainers
modules nixos/smokeping: Remove partOf to ensure restarts work. 2021-11-01 23:20:40 +01:00
tests spike: move test to installCheck phase (#143832) 2021-11-01 21:26:38 +01:00
COPYING
default.nix
README
release-combined.nix
release-small.nix
release.nix

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
https://nixos.org/nixos and in the manual in doc/manual.