clean
This commit is contained in:
17
app/templates/init.d/cleanTmp
Executable file
17
app/templates/init.d/cleanTmp
Executable 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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user