]> git.sesse.net Git - plocate/blobdiff - plocate-updatedb.service.in
Add a systemd service and timer for updatedb, obsoleting the cron entry.
[plocate] / plocate-updatedb.service.in
diff --git a/plocate-updatedb.service.in b/plocate-updatedb.service.in
new file mode 100644 (file)
index 0000000..8db7dba
--- /dev/null
@@ -0,0 +1,14 @@
+[Unit]
+Description=Update the plocate database
+ConditionACPower=true
+
+[Service]
+Type=oneshot
+ExecStart=@sbindir@/updatedb
+LimitNOFILE=131072
+IOSchedulingClass=idle
+
+PrivateTmp=true
+PrivateDevices=true
+PrivateNetwork=true
+ProtectSystem=full