diff options
| author | Michael Grote | 2023-08-02 20:48:47 +0200 |
|---|---|---|
| committer | Michael Grote | 2023-08-02 20:48:47 +0200 |
| commit | a8ef935a22643a870ecb304f8e6785bd42d768b4 (patch) | |
| tree | d6cb4ef5eab88957be8c8afb7eb82a457fceea5e /sanoid.service | |
| parent | 5f543bb8f98524d64d063dfa68eb29a2531d7bba (diff) | |
add service units
Diffstat (limited to 'sanoid.service')
| -rw-r--r-- | sanoid.service | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sanoid.service b/sanoid.service new file mode 100644 index 0000000..300a110 --- /dev/null +++ b/sanoid.service @@ -0,0 +1,13 @@ +[Unit] +Description=Snapshot ZFS filesystems +Documentation=man:sanoid(8) +Requires=local-fs.target +After=local-fs.target +Before=sanoid-prune.service +Wants=sanoid-prune.service +ConditionFileNotEmpty=/etc/sanoid/sanoid.conf + +[Service] +Type=oneshot +Environment=TZ=UTC +ExecStart=/usr/sbin/sanoid --take-snapshots --verbose |