This commit is contained in:
Oliver
2025-10-10 14:32:35 -03:00
parent 09c46d4a8c
commit 5fe0fd6028
5 changed files with 32 additions and 1 deletions

17
app/templates/init.d/cleanTmp Executable file
View File

@@ -0,0 +1,17 @@
#!/sbin/openrc-run
# OpenRC service for /4server/sbin/cleanTmp
name="cleanTmp"
description="Looping /tmp cleaner that removes files older than 2 days"
command="/4server/sbin/cleanTmp"
command_background="yes"
pidfile="/run/${RC_SVCNAME}.pid"
output_log="/4server/data/log/checkCalls.log"
error_log="/4server/data/log/checkCalls.log"
depend() {
need localmount
after bootmisc
}