From 1d9f19ad69295cf1ce94624a17b242f52ced4547 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 26 Oct 2023 10:18:06 +0200 Subject: [PATCH] add make-automaps.service service to create scratch maps, if they do not exist --- make-automaps/make-automaps.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 make-automaps/make-automaps.service diff --git a/make-automaps/make-automaps.service b/make-automaps/make-automaps.service new file mode 100644 index 00000000..b88951f1 --- /dev/null +++ b/make-automaps/make-automaps.service @@ -0,0 +1,12 @@ +[Unit] +DefaultDependencies=no +After=systemd-remount-fs.service +ConditionPathExists=!/etc/automount/auto.scratch + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/make-automaps + +[Install] +WantedBy=basic.target