summaryrefslogtreecommitdiff
path: root/units/tizen-fstrim-user.service
diff options
context:
space:
mode:
Diffstat (limited to 'units/tizen-fstrim-user.service')
-rw-r--r--units/tizen-fstrim-user.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/units/tizen-fstrim-user.service b/units/tizen-fstrim-user.service
new file mode 100644
index 0000000..a0cfe33
--- /dev/null
+++ b/units/tizen-fstrim-user.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Discard unused blocks on user partition
+Requires=opt-usr.mount
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/tizen-fstrim-on-charge.sh /opt/usr
+StandardOutput=journal
+StandardError=inherit