summaryrefslogtreecommitdiff
path: root/core/logrotate/logrotate.service
diff options
context:
space:
mode:
Diffstat (limited to 'core/logrotate/logrotate.service')
-rw-r--r--core/logrotate/logrotate.service9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/logrotate/logrotate.service b/core/logrotate/logrotate.service
new file mode 100644
index 000000000..3a483c3a3
--- /dev/null
+++ b/core/logrotate/logrotate.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Rotate log files
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/logrotate /etc/logrotate.conf
+Nice=19
+IOSchedulingClass=best-effort
+IOSchedulingPriority=7