2021-05-14 02:08:41 +02:00
|
|
|
--- a/atop.service
|
|
|
|
+++ b/atop.service
|
2021-05-16 22:08:05 +02:00
|
|
|
@@ -9,5 +9,6 @@
|
2021-05-14 02:08:41 +02:00
|
|
|
Environment=LOGPATH=/var/log/atop
|
|
|
|
-EnvironmentFile=/etc/default/atop
|
|
|
|
+EnvironmentFile=-/etc/default/atop
|
|
|
|
ExecStartPre=/bin/sh -c 'test -n "$LOGINTERVAL" -a "$LOGINTERVAL" -eq "$LOGINTERVAL"'
|
|
|
|
ExecStartPre=/bin/sh -c 'test -n "$LOGGENERATIONS" -a "$LOGGENERATIONS" -eq "$LOGGENERATIONS"'
|
|
|
|
+ExecStartPre=/bin/sh -c 'mkdir -p "${LOGPATH}"'
|
2021-05-16 22:08:05 +02:00
|
|
|
ExecStart=/bin/sh -c 'exec @out@/bin/atop ${LOGOPTS} -w "${LOGPATH}/atop_$(date +%%Y%%m%%d)" ${LOGINTERVAL}'
|