xcursor-pro: init at 2.0.2 (#335188)
[NixPkgs.git] / pkgs / by-name / at / atop / atop.service.patch
blob0516e5159b9d386dc145b000e3ed97498d0a4b0e
1 diff --git a/atop.service b/atop.service
2 index 6b11dea..f90935f 100644
3 --- a/atop.service
4 +++ b/atop.service
5 @@ -8,10 +8,10 @@ Environment="LOGOPTS="
6 Environment="LOGINTERVAL=600"
7 Environment="LOGGENERATIONS=28"
8 Environment="LOGPATH=/var/log/atop"
9 -EnvironmentFile=/etc/default/atop
10 +EnvironmentFile=-/etc/default/atop
11 ExecStartPre=/bin/sh -c 'test -d "${LOGPATH}" || mkdir -p "${LOGPATH}"'
12 ExecStartPre=/bin/sh -c 'test -n "$LOGINTERVAL" -a "$LOGINTERVAL" -eq "$LOGINTERVAL"'
13 ExecStartPre=/bin/sh -c 'test -n "$LOGGENERATIONS" -a "$LOGGENERATIONS" -eq "$LOGGENERATIONS"'
14 ExecStart=/bin/sh -c 'exec @out@/bin/atop ${LOGOPTS} -w "${LOGPATH}/atop_$(date +%%Y%%m%%d)" ${LOGINTERVAL}'
15 ExecStartPost=@findutils@/bin/find "${LOGPATH}" -name "atop_*" -mtime +${LOGGENERATIONS} -exec rm -v {} \;
16 KillSignal=SIGUSR2