summaryrefslogtreecommitdiff
path: root/systemd/etckeeper.service
diff options
context:
space:
mode:
authorChristian Hesse <mail@eworm.de>2016-05-15 21:08:10 +0200
committerJoey Hess <joeyh@joeyh.name>2016-05-17 10:28:56 -0400
commit56147b45320723e314f107e4c4c04ed3fcdd776b (patch)
treea652f1da382409790534d0002540981ae240a673 /systemd/etckeeper.service
parent0508e49afbe30ecd83311fb42a8eeabb40dd27b0 (diff)
add systemd service and timer
This add systemd service file and timer. To enable the timer: $ systemctl enable etckeeper.timer When enabled the timer will auto-commit 15 minutes after system boot and every 24 hours afer that. Signed-off-by: Christian Hesse <mail@eworm.de>
Diffstat (limited to 'systemd/etckeeper.service')
-rw-r--r--systemd/etckeeper.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/systemd/etckeeper.service b/systemd/etckeeper.service
new file mode 100644
index 0000000..45912bb
--- /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=/usr/lib/systemd/scripts/etckeeper
+IOSchedulingClass=idle