From 56147b45320723e314f107e4c4c04ed3fcdd776b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sun, 15 May 2016 21:08:10 +0200 Subject: 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 --- systemd/etckeeper.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 systemd/etckeeper.service (limited to 'systemd/etckeeper.service') 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 -- cgit v1.2.3