"Fossies" - the Fresh Open Source Software Archive

Member "atop-2.8.1/atop.service" (7 Jan 2023, 703 Bytes) of package /linux/misc/atop-2.8.1.tar.gz:

As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "atop.service": 2.7.0_vs_2.7.1.

    1 [Unit]
    2 Description=Atop advanced performance monitor
    3 Documentation=man:atop(1)
    5 [Service]
    6 Type=simple
    7 Environment="LOGOPTS="
    8 Environment="LOGINTERVAL=600"
    9 Environment="LOGGENERATIONS=28"
   10 Environment="LOGPATH=/var/log/atop"
   11 EnvironmentFile=/etc/default/atop
   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 /usr/bin/atop ${LOGOPTS} -w "${LOGPATH}/atop_$(date +%%Y%%m%%d)" ${LOGINTERVAL}'
   15 ExecStartPost=/usr/bin/find "${LOGPATH}" -name "atop_*" -mtime +${LOGGENERATIONS} -exec rm -v {} \;
   16 KillSignal=SIGUSR2
   18 [Install]
   19 WantedBy=multi-user.target