Merge pull request #375 from johnramsden/master
Declare that sanoid service 'Wants' sanoid-prune
This commit is contained in:
commit
39af643817
|
@ -78,6 +78,8 @@ cat << "EOF" | sudo tee /etc/systemd/system/sanoid.service
|
|||
Description=Snapshot ZFS Pool
|
||||
Requires=zfs.target
|
||||
After=zfs.target
|
||||
Wants=sanoid-prune.service
|
||||
Before=sanoid-prune.service
|
||||
ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
|
||||
|
||||
[Service]
|
||||
|
|
|
@ -7,7 +7,7 @@ ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
|
|||
[Service]
|
||||
Environment=TZ=UTC
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/sanoid --prune-snapshots
|
||||
ExecStart=/usr/sbin/sanoid --prune-snapshots --verbose
|
||||
|
||||
[Install]
|
||||
WantedBy=sanoid.service
|
||||
|
|
|
@ -2,9 +2,11 @@
|
|||
Description=Snapshot ZFS Pool
|
||||
Requires=zfs.target
|
||||
After=zfs.target
|
||||
Wants=sanoid-prune.service
|
||||
Before=sanoid-prune.service
|
||||
ConditionFileNotEmpty=/etc/sanoid/sanoid.conf
|
||||
|
||||
[Service]
|
||||
Environment=TZ=UTC
|
||||
Type=oneshot
|
||||
ExecStart=/usr/sbin/sanoid --take-snapshots
|
||||
ExecStart=/usr/sbin/sanoid --take-snapshots --verbose
|
||||
|
|
Loading…
Reference in New Issue