mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
enum instead of str for checker types, use "lego-monitoring" instead of "service" bin name
This commit is contained in:
parent
ffdd0429b3
commit
19ee6f487b
3 changed files with 7 additions and 4 deletions
|
|
@ -100,7 +100,7 @@
|
||||||
apps.x86_64-linux = {
|
apps.x86_64-linux = {
|
||||||
default = {
|
default = {
|
||||||
type = "app";
|
type = "app";
|
||||||
program = "${self.packages.x86_64-linux.default}/bin/service";
|
program = "${self.packages.x86_64-linux.default}/bin/lego-monitoring";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,10 @@ package:
|
||||||
enable = lib.mkEnableOption "lego-monitoring service.";
|
enable = lib.mkEnableOption "lego-monitoring service.";
|
||||||
|
|
||||||
enabledCheckerSets = lib.mkOption {
|
enabledCheckerSets = lib.mkOption {
|
||||||
type = lib.types.listOf lib.types.str;
|
type = lib.types.listOf (lib.types.enum [
|
||||||
|
"start"
|
||||||
|
"stop"
|
||||||
|
]);
|
||||||
default = [ ];
|
default = [ ];
|
||||||
description = "List of enabled checker sets. Each checker set is a module which checks something and generates alerts based on check results.";
|
description = "List of enabled checker sets. Each checker set is a module which checks something and generates alerts based on check results.";
|
||||||
};
|
};
|
||||||
|
|
@ -43,7 +46,7 @@ package:
|
||||||
systemd.services.lego-monitoring = {
|
systemd.services.lego-monitoring = {
|
||||||
name = "lego-monitoring.service";
|
name = "lego-monitoring.service";
|
||||||
description = "Lego-monitoring service";
|
description = "Lego-monitoring service";
|
||||||
script = "${package}/bin/service -c ${serviceConfigFile}";
|
script = "${package}/bin/lego-monitoring -c ${serviceConfigFile}";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ dependencies = [
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.scripts]
|
[project.scripts]
|
||||||
service = "lego_monitoring:main"
|
lego-monitoring = "lego_monitoring:main"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue