diff options
author | Christian Pointner <equinox@spreadspace.org> | 2021-05-19 16:52:36 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2021-05-19 16:52:36 +0200 |
commit | 26214e3f7c5343fa30d2ff1ae71a6cf7197b6f3e (patch) | |
tree | 3782b45b690df45257e4170df86b57a4b4f3575c /roles/storage/zfs/syncoid/templates/autosuspend.service.j2 | |
parent | rename apt-repo github-containers to kubic-project (diff) |
initial version of syncoid autosuspender
Diffstat (limited to 'roles/storage/zfs/syncoid/templates/autosuspend.service.j2')
-rw-r--r-- | roles/storage/zfs/syncoid/templates/autosuspend.service.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/storage/zfs/syncoid/templates/autosuspend.service.j2 b/roles/storage/zfs/syncoid/templates/autosuspend.service.j2 new file mode 100644 index 00000000..f1e13b72 --- /dev/null +++ b/roles/storage/zfs/syncoid/templates/autosuspend.service.j2 @@ -0,0 +1,18 @@ +[Unit] +Description=automatic system suspender for syncoid-based backups + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/syncoid-autosuspend.py +NoNewPrivileges=yes +PrivateTmp=yes +PrivateDevices=yes +ProtectSystem=strict +ProtectHome=yes +ProtectKernelTunables=yes +ProtectControlGroups=yes +RestrictRealtime=yes +RestrictAddressFamilies=AF_UNIX + +[Install] +WantedBy=multi-user.target |