logrotate as daemon, logfile 5000
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#!/sbin/openrc-run
|
||||
|
||||
name="rotateLogs"
|
||||
description="Daily Odoo log rotation"
|
||||
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
output_log="/4server/data/log/rotateLogs.log"
|
||||
error_log="/4server/data/log/rotateLogs.log"
|
||||
|
||||
command="/4server/sbin/rotateLogs"
|
||||
command_background="yes"
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping rotateLogs"
|
||||
start-stop-daemon --stop --pidfile "$pidfile"
|
||||
eend $?
|
||||
}
|
||||
|
||||
depend() {
|
||||
need localmount
|
||||
after bootmisc
|
||||
}
|
||||
Reference in New Issue
Block a user