We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f7ed8e commit 96e2d9dCopy full SHA for 96e2d9d
layers/wsl2_amd64/etc/init.d/fstrim
@@ -0,0 +1,12 @@
1
+#!/sbin/openrc-run
2
+description="Run fstrim -v /var every 5 minutes"
3
+command="/bin/sh"
4
+command_args="-c 'while true; do fstrim -v /var; sleep 300; done'"
5
+command_background="true"
6
+pidfile="/run/${RC_SVCNAME}.pid"
7
+output_logger="/opt/logger_wrapper.sh stdout"
8
+error_logger="/opt/logger_wrapper.sh stdout"
9
+
10
+depend() {
11
+ after local
12
+}
layers/wsl2_amd64/opt/ovmd
@@ -264,6 +264,7 @@ main() {
264
openrc default
265
/sbin/rc-service kernelogger start
266
/sbin/rc-service podman start
267
+ /sbin/rc-service fstrim start
268
}
269
echo "main(): wait....."
270
while true; do
0 commit comments