mcelog: use .service file from upstream
This commit is contained in:
parent
354c979ea8
commit
f5c0607f8d
@ -3,7 +3,7 @@
|
|||||||
with lib;
|
with lib;
|
||||||
|
|
||||||
{
|
{
|
||||||
meta.maintainers = [ maintainers.grahamc ];
|
meta.maintainers = with maintainers; [ grahamc ];
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
hardware.mcelog = {
|
hardware.mcelog = {
|
||||||
@ -19,19 +19,17 @@ with lib;
|
|||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.hardware.mcelog.enable {
|
config = mkIf config.hardware.mcelog.enable {
|
||||||
systemd.services.mcelog = {
|
systemd = {
|
||||||
description = "Machine Check Exception Logging Daemon";
|
packages = [ pkgs.mcelog ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
|
||||||
|
|
||||||
serviceConfig = {
|
services.mcelog = {
|
||||||
ExecStart = "${pkgs.mcelog}/bin/mcelog --daemon --foreground";
|
wantedBy = [ "multi-user.target" ];
|
||||||
SuccessExitStatus = [ 0 15 ];
|
serviceConfig = {
|
||||||
|
ProtectHome = true;
|
||||||
ProtectHome = true;
|
PrivateNetwork = true;
|
||||||
PrivateNetwork = true;
|
PrivateTmp = true;
|
||||||
PrivateTmp = true;
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user