illum: Restart service on failure

If there is a fatal error and illum exits, it should be safe to restart it.
This commit is contained in:
Claudio Bley 2022-05-05 22:31:56 +02:00
parent 404e681f02
commit fd3d1a834b

View file

@ -28,6 +28,7 @@ in {
description = "Backlight Adjustment Service";
wantedBy = [ "multi-user.target" ];
serviceConfig.ExecStart = "${pkgs.illum}/bin/illum-d";
serviceConfig.Restart = "on-failure";
};
};