summaryrefslogtreecommitdiff
path: root/units/tizen-readahead-collect.service.m4.in
diff options
context:
space:
mode:
Diffstat (limited to 'units/tizen-readahead-collect.service.m4.in')
-rw-r--r--units/tizen-readahead-collect.service.m4.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/units/tizen-readahead-collect.service.m4.in b/units/tizen-readahead-collect.service.m4.in
new file mode 100644
index 0000000..93465f8
--- /dev/null
+++ b/units/tizen-readahead-collect.service.m4.in
@@ -0,0 +1,23 @@
+[Unit]
+Description=Collect Read-Ahead Data
+DefaultDependencies=no
+Wants=tizen-readahead-collect-stop.service
+Conflicts=shutdown.target
+After=smack.service smack-default-labeling.service tizen-readahead-replay.service
+Before=sysinit.target shutdown.target
+ConditionPathExists=!/run/systemd/readahead/cancel
+ConditionPathExists=!/run/systemd/readahead/done
+ConditionPathExists=!@READAHEAD_DIR@/.readahead
+ConditionVirtualization=no
+
+[Service]
+Type=notify
+ExecStart=@rootlibexecdir@/systemd-readahead collect --savedir=@READAHEAD_DIR@
+RemainAfterExit=yes
+StandardOutput=null
+m4_ifdef(`SMACK_LABEL',
+SmackProcessLabel=system-plugin-common::script
+)m4_dnl
+
+[Install]
+WantedBy=tizen-init.target