systemd: convert smartd job to service
This commit is contained in:
parent
dc58c2ea37
commit
f61f0c139b
@ -81,7 +81,7 @@ in
|
|||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
|
||||||
jobs.smartd = {
|
boot.systemd.services.smartd = {
|
||||||
description = "S.M.A.R.T. Daemon";
|
description = "S.M.A.R.T. Daemon";
|
||||||
|
|
||||||
environment.TZ = config.time.timeZone;
|
environment.TZ = config.time.timeZone;
|
||||||
@ -89,9 +89,7 @@ in
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
partOf = [ "multi-user.target" ];
|
partOf = [ "multi-user.target" ];
|
||||||
|
|
||||||
path = [ pkgs.smartmontools ];
|
serviceConfig.ExecStart = "${pkgs.smartmontools}/sbin/smartd --no-fork ${smartdFlags}";
|
||||||
|
|
||||||
exec = "smartd --no-fork --pidfile=/var/run/smartd.pid ${smartdFlags}";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user