|
|
64137f |
# To customize, copy this file to /etc/systemd/system and edit there
|
|
|
64137f |
#
|
|
|
64137f |
# You can use this unit to periodically run mrtg.service.
|
|
|
64137f |
# Only enable if you do not want to run mrtg as a daemon.
|
|
|
64137f |
# Starting mrtg.timer while mrtg.service is running as a daemon has no point.
|
|
|
64137f |
#
|
|
|
64137f |
# Please disable /etc/crond.d/mrtg job when using this unit!
|
|
|
64137f |
#
|
|
|
64137f |
# Default is to run mrtg.service every 5 minutes, starting
|
|
|
64137f |
# 1 minute after system boot.
|
|
|
64137f |
|
|
|
64137f |
[Unit]
|
|
|
64137f |
Description=periodic invocation of MRTG
|
|
|
64137f |
|
|
|
64137f |
[Timer]
|
|
|
64137f |
OnBootSec=1m
|
|
|
64137f |
OnUnitActiveSec=5m
|
|
|
64137f |
|
|
|
64137f |
[Install]
|
|
|
64137f |
WantedBy=multi-user.target
|