summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
Diffstat (limited to 'systemd')
-rw-r--r--systemd/etckeeper.service12
-rw-r--r--systemd/etckeeper.timer10
2 files changed, 22 insertions, 0 deletions
diff --git a/systemd/etckeeper.service b/systemd/etckeeper.service
new file mode 100644
index 0000000..faf1119
--- /dev/null
+++ b/systemd/etckeeper.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Autocommit of changes in /etc directory
+Documentation=man:etckeeper(8)
+DefaultDependencies=no
+Conflicts=shutdown.target
+After=local-fs.target time-sync.target
+Before=shutdown.target
+
+[Service]
+Type=oneshot
+ExecStart=/etc/etckeeper/daily
+IOSchedulingClass=idle
diff --git a/systemd/etckeeper.timer b/systemd/etckeeper.timer
new file mode 100644
index 0000000..364c089
--- /dev/null
+++ b/systemd/etckeeper.timer
@@ -0,0 +1,10 @@
+[Unit]
+Description=Daily autocommit of changes in /etc directory
+Documentation=man:etckeeper(8)
+
+[Timer]
+OnBootSec=15min
+OnUnitActiveSec=1d
+
+[Install]
+WantedBy=multi-user.target