aboutsummaryrefslogtreecommitdiffstats
path: root/user/cleanup-backup.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2015-03-25 22:12:56 +0100
committerDavid Runge <dave@sleepmap.de>2015-03-25 22:12:56 +0100
commitd58aa4e9804dea91a4d3d55d40b6e429a87f3e61 (patch)
tree6b5dca89efecf99595d97f491f91a148d157d5ea /user/cleanup-backup.service
parent878c7a62dd0d9d9733e854684600b3466410399c (diff)
downloadcrypted-backups-d58aa4e9804dea91a4d3d55d40b6e429a87f3e61.tar.gz
crypted-backups-d58aa4e9804dea91a4d3d55d40b6e429a87f3e61.tar.bz2
crypted-backups-d58aa4e9804dea91a4d3d55d40b6e429a87f3e61.tar.xz
crypted-backups-d58aa4e9804dea91a4d3d55d40b6e429a87f3e61.zip
user/cleanup-backup.{service,timer}: Adding cleanup-backup also for user units.
Diffstat (limited to 'user/cleanup-backup.service')
-rw-r--r--user/cleanup-backup.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/user/cleanup-backup.service b/user/cleanup-backup.service
new file mode 100644
index 0000000..61e8b84
--- /dev/null
+++ b/user/cleanup-backup.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Cleanup backups
+ConditionFileIsExecutable=/usr/lib/systemd/scripts/cleanup-backup
+
+[Service]
+EnvironmentFile=/home/%u/.config/crypted-backups
+Nice=19
+IOSchedulingClass=2
+IOSchedulingPriority=7
+ExecStart=/usr/lib/systemd/scripts/cleanup-backup
+