made a string
This commit is contained in:
parent
53d3205238
commit
1badf77912
@ -115,23 +115,24 @@
|
|||||||
autoScrub.enable = true;
|
autoScrub.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd = {
|
||||||
systemd.services.snapshot_manager = {
|
services."snapshot_manager" = {
|
||||||
description = "ZFS Snapshot Manager";
|
description = "ZFS Snapshot Manager";
|
||||||
requires = [ "zfs-import.target" ];
|
requires = [ "zfs-import.target" ];
|
||||||
after = [ "zfs-import.target" ];
|
after = [ "zfs-import.target" ];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
ExecStart = "${pkgs.python3}/bin/python -m zfs.snapshot_manager --config-file='/ZFS/Media/Scripts/new/config.toml'";
|
ExecStart = "${pkgs.python3}/bin/python -m zfs.snapshot_manager --config-file='/ZFS/Media/Scripts/new/config.toml'";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
timers."snapshot_manager" = {
|
||||||
systemd.timers.snapshot_manager = {
|
description = "ZFS Snapshot Manager";
|
||||||
description = "ZFS Snapshot Manager";
|
service = "snapshot_manager";
|
||||||
service = "snapshot_manager";
|
timerConfig = {
|
||||||
timerConfig = {
|
OnBootSec = "15m";
|
||||||
OnBootSec = "15m";
|
OnUnitActiveSec = "15m";
|
||||||
OnUnitActiveSec = "15m";
|
Unit = "snapshot_manager.service";
|
||||||
Unit = "snapshot_manager.service";
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user